// a case execution associated with Task B
CmmnActivityExecution taskB = caseInstance.findCaseExecution("B");
// when
caseInstance.suspend();
// then
assertTrue(caseInstance.isSuspended());
assertTrue(stageX.isSuspended());
assertTrue(taskA.isSuspended());