How kill a active process instance?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2011 04:15 PM
I am using a userTask as "waitTask" so I can retrieve the variables at runtime.
But I observed that the process instances are active in the database.
How do I terminate the process instance so I retrieve the variables?
All BPMN files have the following script:
Sorry for my English!
But I observed that the process instances are active in the database.
How do I terminate the process instance so I retrieve the variables?
All BPMN files have the following script:
… <userTask name="WaitState" id="waitState"/> <sequenceFlow sourceRef="waitState" targetRef="theEnd"/> <endEvent id="theEnd" /> </process>
Sorry for my English!
Labels:
- Labels:
-
Archive
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2011 03:47 AM
Hi,
What do you mean with "active" in the database.
The process instance state is just stored there and when the instance leaves the wait state it's retrieved again from the database.
So there's nothing "active" going on at the point.
Best regards,
What do you mean with "active" in the database.
The process instance state is just stored there and when the instance leaves the wait state it's retrieved again from the database.
So there's nothing "active" going on at the point.
Best regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2011 10:31 AM
I refer to instances "active" in the database.
See the image below:
[img]http://i54.tinypic.com/1yqo94.png[/img]
See the image below:
[img]http://i54.tinypic.com/1yqo94.png[/img]

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2011 10:53 AM
I know, but these are just instances that are stored in the database.
So there's nothing running on the Activiti Engine.
The process instance will be active again when the wait state is triggered.
Best regards,
So there's nothing running on the Activiti Engine.
The process instance will be active again when the wait state is triggered.
Best regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2011 11:07 AM
Tijs is right and besides, why do you want to terminate it to retrieve the variables?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2011 03:09 PM
Hello Ronald!
No, I do not want to retrieve the variables. Because at this point I've regained the variables.
I use the task "waitTask" just to retrieve the variables. After retrieving it, I want to finish the process.
I want the process instance go to the history.
How do I do this?
No, I do not want to retrieve the variables. Because at this point I've regained the variables.
I use the task "waitTask" just to retrieve the variables. After retrieving it, I want to finish the process.
I want the process instance go to the history.
How do I do this?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2011 02:45 AM
Hi,
You can use the signal method on the RuntimeService to trigger the process to complete the wait task and then (if there are no other wait tasks in your process) finish the process instance.
The process instance will then only be available in the history tables.
Best regards,
You can use the signal method on the RuntimeService to trigger the process to complete the wait task and then (if there are no other wait tasks in your process) finish the process instance.
The process instance will then only be available in the history tables.
Best regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2011 10:37 AM
Trademark!
Thank you for your help!
That's what I needed to know…
Best regards!
Rodolfo Barbeiro
Thank you for your help!
That's what I needed to know…
Best regards!
Rodolfo Barbeiro
