use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class CasePlanModelHandlerTest method testActivityBehavior.
@Test
public void testActivityBehavior() {
// given: a case plan model
// when
CmmnActivity activity = handler.handleElement(casePlanModel, context);
// then
CmmnActivityBehavior behavior = activity.getActivityBehavior();
assertTrue(behavior instanceof StageActivityBehavior);
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class CaseTaskPlanItemHandlerTest method testActivityBehavior.
@Test
public void testActivityBehavior() {
// given: a planItem
// when
CmmnActivity activity = handler.handleElement(planItem, context);
// then
CmmnActivityBehavior behavior = activity.getActivityBehavior();
assertTrue(behavior instanceof CaseTaskActivityBehavior);
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class DecisionTaskPlanItemHandlerTest method testActivityBehavior.
@Test
public void testActivityBehavior() {
// given: a planItem
// when
CmmnActivity activity = handler.handleElement(planItem, context);
// then
CmmnActivityBehavior behavior = activity.getActivityBehavior();
assertTrue(behavior instanceof DmnDecisionTaskActivityBehavior);
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class ActivityBehaviorUtil method getActivityBehavior.
public static CmmnActivityBehavior getActivityBehavior(CmmnExecution execution) {
String id = execution.getId();
CmmnActivity activity = execution.getActivity();
ensureNotNull(PvmException.class, "Case execution '" + id + "' has no current activity.", "activity", activity);
CmmnActivityBehavior behavior = activity.getActivityBehavior();
ensureNotNull(PvmException.class, "There is no behavior specified in " + activity + " for case execution '" + id + "'.", "behavior", behavior);
return behavior;
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CmmnActivityBehavior in project camunda-bpm-platform by camunda.
the class HumanTaskDicretionaryItemHandlerTest method testActivityBehavior.
@Test
public void testActivityBehavior() {
// given: a discretionaryItem
// when
CmmnActivity activity = handler.handleElement(discretionaryItem, context);
// then
CmmnActivityBehavior behavior = activity.getActivityBehavior();
assertTrue(behavior instanceof HumanTaskActivityBehavior);
}
Aggregations