cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic agent type and agent in Workflow

0 Kudos

Is there any way i can set dynamically agent type and agent in workflow automatically without entering agent type (that we select from drop down eg: Role, Rule , User, Job etc.) and its corresponding value.

Requirement is when workflow is triggered it should be able to fetch the agent type and agent dynamically

0 Kudos

define Role inside a Rule ?

0 Kudos

Agent determination inside rule? if there is another rule or expression or role

View Entire Topic
egor_malov
Contributor

Hi, Ankit,

Agent type 'rule' (object type = AC) makes it possible:

basically you create (or reuse) this Rule object and set it as agent in your workflow step definition.

It is a powerful mechanism that can fetch agents in many ways (including running a piece of ABAP code). You can read about agent determination rules here:

Definition of an Agent Determination Rule: https://help.sap.com/doc/saphelp_nw73ehp1/7.31.19/en-US/4e/ebac630d3e57e0e10000000a421bc1/content.ht...

Function Module for Rule: Resolution https://help.sap.com/viewer/89fb91eb2a304f2c9b722c978a1b3194/7.40.17/en-US/4eebd1030d1857dee10000000...