Search in sources :

Example 11 with Input

use of org.camunda.bpm.model.dmn.instance.Input in project camunda-engine-dmn by camunda.

the class DefaultDmnTransform method transformDecisionTableInput.

protected DmnDecisionTableInputImpl transformDecisionTableInput(Input input) {
    DmnElementTransformHandler<Input, DmnDecisionTableInputImpl> handler = handlerRegistry.getHandler(Input.class);
    DmnDecisionTableInputImpl dmnInput = handler.handleElement(this, input);
    // validate input id
    if (dmnInput.getId() == null) {
        throw LOG.decisionTableInputIdIsMissing(decision, dmnInput);
    }
    InputExpression inputExpression = input.getInputExpression();
    if (inputExpression != null) {
        parent = dmnInput;
        DmnExpressionImpl dmnExpression = transformInputExpression(inputExpression);
        if (dmnExpression != null) {
            dmnInput.setExpression(dmnExpression);
        }
    }
    return dmnInput;
}
Also used : DmnDecisionTableInputImpl(org.camunda.bpm.dmn.engine.impl.DmnDecisionTableInputImpl) DmnExpressionImpl(org.camunda.bpm.dmn.engine.impl.DmnExpressionImpl) Input(org.camunda.bpm.model.dmn.instance.Input) InputExpression(org.camunda.bpm.model.dmn.instance.InputExpression)

Aggregations

Input (org.camunda.bpm.model.dmn.instance.Input)11 DecisionTable (org.camunda.bpm.model.dmn.instance.DecisionTable)7 Output (org.camunda.bpm.model.dmn.instance.Output)7 Rule (org.camunda.bpm.model.dmn.instance.Rule)6 Test (org.junit.Test)6 Decision (org.camunda.bpm.model.dmn.instance.Decision)5 Definitions (org.camunda.bpm.model.dmn.instance.Definitions)5 InputExpression (org.camunda.bpm.model.dmn.instance.InputExpression)5 InputEntry (org.camunda.bpm.model.dmn.instance.InputEntry)4 OutputEntry (org.camunda.bpm.model.dmn.instance.OutputEntry)4 DmnDecisionTableInputImpl (org.camunda.bpm.dmn.engine.impl.DmnDecisionTableInputImpl)3 InputValues (org.camunda.bpm.model.dmn.instance.InputValues)3 OutputValues (org.camunda.bpm.model.dmn.instance.OutputValues)3 Text (org.camunda.bpm.model.dmn.instance.Text)3 DmnModelInstance (org.camunda.bpm.model.dmn.DmnModelInstance)2 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 DmnDecisionTableImpl (org.camunda.bpm.dmn.engine.impl.DmnDecisionTableImpl)1 DmnDecisionTableOutputImpl (org.camunda.bpm.dmn.engine.impl.DmnDecisionTableOutputImpl)1 DmnDecisionTableRuleImpl (org.camunda.bpm.dmn.engine.impl.DmnDecisionTableRuleImpl)1