cancel
Showing results for 
Search instead for 
Did you mean: 

End Event not Working

amir_kourani
Champ in-the-making
Champ in-the-making
Hi,
When completing the last task the process instance is returned to the first task instead of being finished.
anybody faced this problem? usually the process instance is finished when the end event is achieved or i have to end the process instance explicitly (specifying some commands that end the task)?
2 REPLIES 2

amir_kourani
Champ in-the-making
Champ in-the-making
Hi,
Sorry after making some revision to database table i found this result:
1-The process instance is finished.
2-A new process instance is created having the variable of the previous process instance.
3-What have made me think that the process is not finished is that i have a unique variable attached to each process instance represent a certain ID in my application and i am using that variable to integrate activiti with my business code , so i was querying the process instance by the use of this variable which tuned to be attached to a new process instance at the first task.

Note: I am finding it hard to browse my topic using the new site (it is not to much user freindly) can anybody tell me how to access my topic directly.

frederikherema1
Star Contributor
Star Contributor
This is a typical use case for using the BusinessKey (can be provided when starting a process-instance). This is a unique key that can be supplied to the process-instance that links to your business-model.

You can easily query for processes/executions using that id. This way, there is no need to use a "special" variable…