About jBPM 3.1.4 :
In the TaskInstance class, can be invoked the Suspend() method.
But how to know if the Taskinstance is suspended ?
The isSuspended field is protected, not public.
The only public propertie giving an information is the isOpen. if a taskinstance is not opened, it's because it's cancelled, ended or suspended. It's help to know if a task instance is suspended but it's not a very good method to know that.
Does anybody know where is hidding an "isSuspended" public getter?
afaik, there also is a 'isEnded' on a task, so the combination of (!isEnded && !isOpen) would give you the isSuspended, or at least it has to be something like this. You can also look in the source what happens if the suspend() method is called