12-05-2012 05:46 AM
ProcessInstance instance = runtimeService.startProcessInstanceByKey(processKey);
It's important to note that the Activiti engine will continue process execution steps until it reaches a wait state, such as the user task. At such a wait state, the current state of the process instance is stored in the database. It remains in that state until a user decides to complete its task. At that point, the engine will continue until it reaches a new wait state or the end of the process. When the engine reboots or crashes in the meantime, the state of the process is safe and well in the database.
12-05-2012 09:10 AM
But could i do something for having it directly after the instance launch because i need it before the instance reaches the first javaservice task.If you make set the first task as async=true, then startProcessInstanceByKey will return immediately (the workflow is now running in a new thread)
12-05-2012 10:00 AM
12-06-2012 04:59 AM
12-06-2012 05:15 AM
12-06-2012 05:38 AM
12-06-2012 11:20 AM
Maybe this should be mentioned very early in the docs…
If i put "async = true" then it doesn t find my class "com.test.ActivitiTask" and doesn t lauch my method execute…
12-07-2012 04:38 AM
12-07-2012 04:49 AM
Maybe this should be mentioned very early in the docs…
I don't know … async is a pretty complex thing to grasp …
Definitely if you don't understand the regular transactional way of execution …
12-07-2012 04:52 AM
Other question :
Could it be possible that, because i'm deploying my xml on activiti-explorer, when i lauch the process instance and engine in my application (not activiti explorer), activiti try to search my class (in the async javaservicetask) in activiti-explorer evenif i really don't think so (logically, it would search, as you said, in the same JVM)
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.