To implement suspend and resume on deployments and cascade it to executions, jobs and tasks, I started with synchronizing following properties:
* Deployment.state
* Execution.state
* Job.state
* Task.state
(some of those had an isSuspended boolean) So i switched to all state (String) properties.
Two operations are added to the repository service: suspendDeployment and resumeDeployment. This cascades to all the related executions, jobs and tasks.
see also: https://jira.jboss.org/jira/browse/JBPM-2242