11-09-2011 09:56 PM
11-10-2011 09:46 AM
11-10-2011 08:42 PM
11-11-2011 12:43 AM
What would be nice though is some functionality where I can specify declaratively what should happen on service task failure - for example "on error forward the task to the sysAdmin Group".Well in that case you have to decide what "error" means. Does it mean the java code associated with the serviceTask throws an exception?
Also I'm not to sure how usefull automatic retry is on a service task. Let's say I do some heavy processing in a java class that ends up throwing an exception. With automatic retry, this might cause it to just happen again on every retry. It would be beter if the task could "go somewhere else" while the problem is being fixed and then be "resubmitted" later.
I could probably model something like this in a sub process, but it would be nice to have the engine cater for it, because I can imagine myself needing this functionality for every service task
It is also possible to provide a class that implements the org.activiti.engine.impl.pvm.delegate.ActivityBehavior interface. Implementations have then access to the more powerful ActivityExecution that for example also allows to influence the control flow of the process. Note however that this is not a very good practice, and should be avoided as much as possible. So, it is advised to use the ActivityBehavior interface only for advanced use cases and if you know exactly what you're doing.
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.