Search in sources :

Example 1 with ResultListDecisionTableResultMapper

use of org.camunda.bpm.engine.impl.dmn.result.ResultListDecisionTableResultMapper in project camunda-bpm-platform by camunda.

the class DecisionTaskPlanItemHandlerTest method testDefaultMapDecisionResult.

@Test
public void testDefaultMapDecisionResult() {
    // given:
    // when
    CmmnActivity activity = handler.handleElement(planItem, context);
    // then
    DmnDecisionTaskActivityBehavior behavior = (DmnDecisionTaskActivityBehavior) activity.getActivityBehavior();
    DecisionResultMapper mapper = behavior.getDecisionTableResultMapper();
    assertTrue(mapper instanceof ResultListDecisionTableResultMapper);
}
Also used : DmnDecisionTaskActivityBehavior(org.camunda.bpm.engine.impl.cmmn.behavior.DmnDecisionTaskActivityBehavior) ResultListDecisionTableResultMapper(org.camunda.bpm.engine.impl.dmn.result.ResultListDecisionTableResultMapper) SingleResultDecisionResultMapper(org.camunda.bpm.engine.impl.dmn.result.SingleResultDecisionResultMapper) DecisionResultMapper(org.camunda.bpm.engine.impl.dmn.result.DecisionResultMapper) CmmnActivity(org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity) Test(org.junit.Test)

Aggregations

DmnDecisionTaskActivityBehavior (org.camunda.bpm.engine.impl.cmmn.behavior.DmnDecisionTaskActivityBehavior)1 CmmnActivity (org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity)1 DecisionResultMapper (org.camunda.bpm.engine.impl.dmn.result.DecisionResultMapper)1 ResultListDecisionTableResultMapper (org.camunda.bpm.engine.impl.dmn.result.ResultListDecisionTableResultMapper)1 SingleResultDecisionResultMapper (org.camunda.bpm.engine.impl.dmn.result.SingleResultDecisionResultMapper)1 Test (org.junit.Test)1