Search in sources :

Example 6 with InputExpression

use of org.camunda.bpm.model.dmn.instance.InputExpression 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

InputExpression (org.camunda.bpm.model.dmn.instance.InputExpression)6 Input (org.camunda.bpm.model.dmn.instance.Input)5 Decision (org.camunda.bpm.model.dmn.instance.Decision)4 DecisionTable (org.camunda.bpm.model.dmn.instance.DecisionTable)4 Definitions (org.camunda.bpm.model.dmn.instance.Definitions)4 Output (org.camunda.bpm.model.dmn.instance.Output)4 InputEntry (org.camunda.bpm.model.dmn.instance.InputEntry)3 InputValues (org.camunda.bpm.model.dmn.instance.InputValues)3 OutputEntry (org.camunda.bpm.model.dmn.instance.OutputEntry)3 OutputValues (org.camunda.bpm.model.dmn.instance.OutputValues)3 Rule (org.camunda.bpm.model.dmn.instance.Rule)3 Text (org.camunda.bpm.model.dmn.instance.Text)3 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)1 DmnDecisionTableInputImpl (org.camunda.bpm.dmn.engine.impl.DmnDecisionTableInputImpl)1 DmnExpressionImpl (org.camunda.bpm.dmn.engine.impl.DmnExpressionImpl)1 DmnModelInstance (org.camunda.bpm.model.dmn.DmnModelInstance)1 BusinessContextElement (org.camunda.bpm.model.dmn.instance.BusinessContextElement)1 DrgElement (org.camunda.bpm.model.dmn.instance.DrgElement)1 ElementCollection (org.camunda.bpm.model.dmn.instance.ElementCollection)1