Hi guys,
The state field of TaskImpl duplicates the state field of ScopeInstanceImpl. If we invoke TaskImpl.suspend(), the state field of TaskImpl won't change. I upload a patch to delete the duplicated field 'state' of TaskImpl. There is also a testcase for verifying the result.
https://jira.jboss.org/jira/browse/JBPM-2750
Thank you very much.