Steps to reproduce:
1) deploy a process with a job
2) start a process instance of that process
3) suspend process instance by RuntimeService#suspendProcessInstanceById()
Problem:
The corresponding job is still active.
Expected Behavior:
The corresponding job is suspended.
Hint:
In this case instead of builder.processDefinitionId() this builder.byProcessInstanceId() must be used.
This is the controller panel for Smart Panels app
Job suspension state is not updated when suspending/activating a process instance by id
Steps to reproduce:
1) deploy a process with a job
2) start a process instance of that process
3) suspend process instance by RuntimeService#suspendProcessInstanceById()
Problem:
The corresponding job is still active.
Expected Behavior:
The corresponding job is suspended.
Hint:
In this case instead of builder.processDefinitionId() this builder.byProcessInstanceId() must be used.