CaseExecutionStateTransitionCollector stateTransitionCollector = new CaseExecutionStateTransitionCollector();
// given ///////////////////////////////////////////////////////////////
// a case definition
CmmnCaseDefinition caseDefinition = new CaseDefinitionBuilder("Case1")
.listener("complete", stateTransitionCollector)
.createActivity("X")
.listener("complete", stateTransitionCollector)
.behavior(new StageActivityBehavior())
.createActivity("A")