Search in sources :

Example 11 with RuleAnnotation

use of org.kie.dmn.model.api.RuleAnnotation in project kie-wb-common by kiegroup.

the class RuleAnnotationClauseTextConverter method dmnFromWB.

public static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb) {
    if (wb == null) {
        return null;
    }
    final RuleAnnotation ruleAnnotation = new org.kie.dmn.model.v1_2.TRuleAnnotation();
    ruleAnnotation.setText(wb.getText().getValue());
    return ruleAnnotation;
}
Also used : RuleAnnotation(org.kie.dmn.model.api.RuleAnnotation)

Aggregations

RuleAnnotation (org.kie.dmn.model.api.RuleAnnotation)11 DecisionRule (org.kie.dmn.model.api.DecisionRule)3 LiteralExpression (org.kie.dmn.model.api.LiteralExpression)3 UnaryTests (org.kie.dmn.model.api.UnaryTests)3 TRuleAnnotation (org.kie.dmn.model.v1_2.TRuleAnnotation)2 TRuleAnnotation (org.kie.dmn.model.v1_3.TRuleAnnotation)2 TRuleAnnotation (org.kie.dmn.model.v1_4.TRuleAnnotation)2 Test (org.junit.Test)1 TDecisionRule (org.kie.dmn.model.v1_2.TDecisionRule)1 TDecisionRule (org.kie.dmn.model.v1_3.TDecisionRule)1 TDecisionRule (org.kie.dmn.model.v1_4.TDecisionRule)1 RuleAnnotationClauseText (org.kie.workbench.common.dmn.api.definition.model.RuleAnnotationClauseText)1 Text (org.kie.workbench.common.dmn.api.property.dmn.Text)1