use of org.camunda.bpm.model.dmn.instance.Variable in project camunda-dmn-model by camunda.
the class VariableImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Variable.class, DMN_ELEMENT_VARIABLE).namespaceUri(DMN11_NS).extendsType(InformationItem.class).instanceProvider(new ModelTypeInstanceProvider<Variable>() {
public Variable newInstance(ModelTypeInstanceContext instanceContext) {
return new VariableImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.dmn.instance.Variable in project camunda-engine-dmn by camunda.
the class DefaultDmnTransform method transformDecisionLiteralExpression.
protected DmnDecisionLiteralExpressionImpl transformDecisionLiteralExpression(Decision decision, LiteralExpression literalExpression) {
DmnDecisionLiteralExpressionImpl dmnDecisionLiteralExpression = new DmnDecisionLiteralExpressionImpl();
Variable variable = decision.getVariable();
if (variable == null) {
throw LOG.decisionVariableIsMissing(decision.getId());
}
DmnVariableImpl dmnVariable = transformVariable(variable);
dmnDecisionLiteralExpression.setVariable(dmnVariable);
DmnExpressionImpl dmnLiteralExpression = transformLiteralExpression(literalExpression);
dmnDecisionLiteralExpression.setExpression(dmnLiteralExpression);
return dmnDecisionLiteralExpression;
}
Aggregations