12-29-2010 08:19 AM
01-05-2011 03:28 AM
Using the activiti API from within activiti-context (JavaDelegate or TaskListeners) is a bad idea, this can mess up command-context and transactions in activiti. When you start a process-instance this way, the thread that drives the execution (which is used to invoke your code) will be used to run the spawned process instance (until it ends or reaches a wait-state).Could this is my problem too ? I am starting a process from an object instantiated by a Java Service task. The requirement is to start an exception process in response to some condition, but in a different PVM, so I dont think it can be modelled in the process.
01-05-2011 09:36 AM
Could this is my problem too ? I am starting a process from an object instantiated by a Java Service task. The requirement is to start an exception process in response to some condition, but in a different PVM, so I dont think it can be modelled in the process.
So I think I need to put something like a message queue in between, or somehow force a it onto a new thread in the service task.
In the quote above it says using the API within a JavaDelegate is a bad idea - am I correct in saying that is just those API calls that result in data being committed ?
01-05-2011 10:18 AM
Do you mean starting a process on another Activiti instance
01-05-2011 10:51 AM
Well, the reason why it is a bad practice, is because the API call will also create a new transaction; new commandcontext, etc.
01-06-2011 04:10 AM
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.