Community

foreach activity

reply from Maciej Swiderski in jBPM Development - View the full discussion

Walter Seymore wrote:


I also thought the expression was a completion condition. Are you saying that the multiplicity attribute can be used in the same way? Let's say a rule execution determines that it should complete, would it be possible to write a multiplicity expression like this (pseudo code) "#{rule.result ? numberCompleted : items.size}"?

 

Thanks

Walter

It is more like surrounding activities that needs to be executed in a loop than attaching loop characteristic to an activity. Meaning that there are two sides with separated responsibilities:

  • for each activity that is responsible for creating required activity instances based on outgoing transition and expr attribute
  • join activity that is responsible for continuing the flow based on number of incoming transitions and multiplicity attribute

 

Answering to your question, yes, you can use any expression that is supported by juel. Currently all evaluation on multiplicity attribute is done by JUEL script engine.

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community