cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic parallel processing using a multiline container element

former_member628175
Active Participant
0 Kudos

Hi All ,

I just wanted to how things work when we use "Dynamic parallel processing" for a decision step . I came across a situation wherein a Rule gets the approving user(s) and the work item should be sent to all those users . After getting an approval from all the users , the workflow should proceed or else it should terminate .

I was just wondering whether "Dynamic parallel processing" will do this job or not . I had also thought of using forks but as the number of approvers are decided at runtime , i dont think it is possible .

Any inputs ?

Edit : We are working on CRM 5.0

Thanks ,

Shounak M.

Message was edited by: Shounak M

Accepted Solutions (1)

Accepted Solutions (1)

VijayasekarK
Active Participant
0 Kudos

Hi Shounak ,

If i understood correctly , you would like to have a parallel processs depending on the no. of records in the muliline container element...

This can be achevied by using sap standard functionality......

In the workflow task , goto "Others" tab ...where in u can speficy the mulitline container element . Workitems will get generated parallely depending on the no. of records in that multiline element.....

Hope it helps... if so reward points.....

regards,

vijay

former_member628175
Active Participant
0 Kudos

Hi Vijay ,

You are correct . What I also want to know is , how workflow will behave if one of the approver rejects it . I want that , workflow should continue only if all the approvers have approved it .

Thanks ,

Shounak M

former_member186746
Active Contributor
0 Kudos

Hi Shounak,

Just do as Mike says:

use the multiline element for a subflow.

The subflow consists of your user decision, if someone rejects it, remember it (could be done by updating a small table using a method, or use an event, or what mike suggested, updating appending a table )

In the top flow, after the multiline element step determine if someone rejected it (wait for event, or reading the table).

Kind regards, Rob Dielemans

Message was edited by: Rob Dielemans

Answers (2)

Answers (2)

pokrakam
Active Contributor
0 Kudos

Hi Shounak,

Dyn.par. processing is not available for decision steps. Not sure why it was designed this way, possibly because multiple outcomes can get confusing.

You need to either create a decision task manually (DECISION.PROCESS) or the easier option is to put the decision in a subflow and return a value to your calling flow depending on what outcome was chosen. You need a multiline container for each outcome, use container operation 'append to table' in your binding, then you can check the number choices made for each decision.

Hope that helps.

Cheers,

Mike

Former Member
0 Kudos

Hi,

try with end condition of fork whereas you can have the expression defined .

Create a workflow container element and store the number of approvers and check against the logical expression defined with the condition editor.

let me know if that helped you out.

Thank you.

Regards,

karun.M