What i need is to attach an event to activity so that when task is not finished before desired time than the execution folows additional flow.
This is for example: Developer user task has to be finished before estimated time expires ie 2 weeks before release time to be sure we know when we have a problem.
I could use parallel gateway to split flow and on one branch use timed event but I think it would be better to attach it to user task or even whole subprocess.
from this discussion http://community.jboss.org/message/618385#618385
The last thing I remember is that in jBPM5 was not (yet) possible to define a boundary event to an Activity. It needs to be attached to a Subprocess. I'm not sure if adding a boundary event to a Task is now supported, but from what I see, it is not.