Multi instance, add more element at runtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2015 01:42 AM
I have a muti instance "Call Activity", I was wondering if its possible to add more instances to the current activity?
Regards
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2015 06:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-30-2015 03:03 PM
Implementing the BPMN 2.0 multi-instance activity, pag 247
"The loop cardinality value is processed only once, when the multiinstance
activity is created. When the process variable value changes during
the multi-instance activity execution, this doesn’t result in another number of
instances."
Edgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2015 04:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2015 03:50 AM
From my point of view it is not so big deal to implement this feature.
You can do it by yourselves. Just have a look on
org.activiti.engine.impl.bpmn.behavior.ParallelMultiInstanceBehavior#createInstances
org.activiti.engine.impl.bpmn.behavior.SequentialMultiInstanceBehavior#createInstances
Regards
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2015 01:53 AM
Just wonder what would be the way to accomplish this?
- Extending AbstractBpmnParseHandler<CallActivity> or
- Implementing BpmnParseHandler
After that, what would be the way to add a new instance, through Process Variables??
Edgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2015 02:14 AM
I would expect that you want to add instances to the currently running multiinstance activity.
In that case I would implement new method to add executions to the currently running multiinstance execution (in parallel case). You can do it in the same way as Parallel Behavior is doing.
Regards
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2015 09:06 PM
I tried to follow your recommendation, I made a CustomInstanceBehavior and CustomCallActivityParseHandler
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
<property name="databaseSchemaUpdate" value="true"/>
<property name="postBpmnParseHandlers">
<list>
<bean class="com.demo.listeners.CustomCallActivityParseHandler" />
</list>
</property>
</bean>
You are right I just want to add more executions not matter whether my initial list of elements was 5, just to say something more and more depending of the user.
In this case how can I call createInstances and then adding more executions?
Thanks,
Edgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2015 12:49 AM
Messages boundary event and Messages Catching event?
Just send any quantity of Messages to the subprocess and then wait for termination
Edgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2015 05:25 AM
behaviour implementation -> You do not need to make changes in the behaviour. What you have to do is to implement command which will create and add new executions to the multiinstance task execution.
Regards
Martin
