Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
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
Labels in this area