Skip to Content
Technical Articles

How to Find Workflow Agent using Class in Background Task

Scenario: There are few scenarios when Workflow Agent needs to identify based on some custom logic. To identify Agents , can use Custom Class based task which will be called in Background.

Please find steps to Identify Agents using Class Based Task.

 

1.Create Workflow using SWDD

 

2. Create Custom Class to identify Workflow Agents.

Add Interfaces-

  1. BI_OBJECT
  2. BI_PERSISTENT
  3. IF_WORKFLOW

3. Create custom Static Method- GET_AGENTS to write logic to fetch agent details.

Put return parameter to send Workflow Agent Details.

 Write logic based on requirement.

 

4. Create Workflow task and assign newly created custom class.

 

 

5. Create Email Send Activity and assign Agent Details

 

 

Email will be send to respective Agents identified in Custom Static method.

This is used only when BOR objects are not available to get workflow agents and send email functionality.

1 Comment
You must be Logged on to comment or reply to a post.