Maciej Swiderski [
http://community.jboss.org/people/swiderski.maciej] replied to the
discussion
"foreach activity"
To view the discussion, visit:
http://community.jboss.org/message/546995#546995
--------------------------------------------------------------
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
[
http://community.jboss.org/message/546995#546995]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]