Community
Participate
Working Groups
https://issues.jboss.org/browse/JBPM-3091
Currently need to select the relevant node, then go to the properties tab (advanced) and then create the top level property for the loop characteristic. We probably need to decide what actions a user will do most frequently and provide short cuts on the context menu. Other more detailed activities could probably remain in the advanced properties panel.
After looking into this a bit, it's like the MessageFlow where you can define an expression. In this case however, you add a StandardLoopCharacteristics object to the Activity, and that in turn has an Expression and a "testBefore" boolean flag. So we should be able to do this something similar to how we do the Expression for a MessageFlow where it has a button to add a StandardLoopCharacteristics object to the model and show a composite where the user can add an expression and set the loop flag.
Have added the first part of this to the code and pushed it in. The difficulty comes with rendering lower-level attributes and references. For example, we need to handle expressions for StandardLoopCharacteristics' two attributes - LoopCondition and LoopMaximum. And for MultiInstanceLoopCharacteristics, there are many more bits in there to deal with. When I tried referencing registered property composites I ended up with a bunch of gobbledy-gook. So I'm still working on this, but the first part (i.e. being able to add LoopCharacteristics to a Called Activity is there.
The latest iteration of the code adds radio buttons (None, Standard and Multi Instance) to the Sub Process property tab. I think is good enough for now.