Search in sources :

Example 1 with SingleResultDecisionResultMapper

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

the class DecisionTaskPlanItemHandlerTest method testMapDecisionResult.

@Test
public void testMapDecisionResult() {
    // given:
    decisionTask.setCamundaMapDecisionResult("singleResult");
    // when
    CmmnActivity activity = handler.handleElement(planItem, context);
    // then
    DmnDecisionTaskActivityBehavior behavior = (DmnDecisionTaskActivityBehavior) activity.getActivityBehavior();
    DecisionResultMapper mapper = behavior.getDecisionTableResultMapper();
    assertTrue(mapper instanceof SingleResultDecisionResultMapper);
}
Also used : DmnDecisionTaskActivityBehavior(org.camunda.bpm.engine.impl.cmmn.behavior.DmnDecisionTaskActivityBehavior) 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) SingleResultDecisionResultMapper(org.camunda.bpm.engine.impl.dmn.result.SingleResultDecisionResultMapper) 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 SingleResultDecisionResultMapper (org.camunda.bpm.engine.impl.dmn.result.SingleResultDecisionResultMapper)1 Test (org.junit.Test)1