use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class AtomicOperationCaseExecutionCreated method execute.
public void execute(CmmnExecution execution) {
CmmnActivityBehavior behavior = getActivityBehavior(execution);
behavior.created(execution);
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class AtomicOperationCaseExecutionDisable method preTransitionNotification.
protected void preTransitionNotification(CmmnExecution execution) {
CmmnExecution parent = execution.getParent();
if (parent != null) {
CmmnActivityBehavior behavior = getActivityBehavior(parent);
if (behavior instanceof CmmnCompositeActivityBehavior) {
CmmnCompositeActivityBehavior compositeBehavior = (CmmnCompositeActivityBehavior) behavior;
compositeBehavior.handleChildDisabled(parent, execution);
}
}
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class AtomicOperationCaseExecutionFireExitCriteria method execute.
public void execute(CmmnExecution execution) {
CmmnActivityBehavior behavior = getActivityBehavior(execution);
behavior.fireExitCriteria(execution);
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class AtomicOperationCaseExecutionManualStart method postTransitionNotification.
protected void postTransitionNotification(CmmnExecution execution) {
CmmnActivityBehavior behavior = getActivityBehavior(execution);
behavior.started(execution);
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class MilestoneDiscretionaryItemHandlerTest method testActivityBehavior.
@Test
public void testActivityBehavior() {
// given: a planItem
// when
CmmnActivity activity = handler.handleElement(discretionaryItem, context);
// then
CmmnActivityBehavior behavior = activity.getActivityBehavior();
assertTrue(behavior instanceof MilestoneActivityBehavior);
}
Aggregations