use of org.eclipse.bpmn2.FormalExpression in project kie-wb-common by kiegroup.
the class AdHocSubProcessPropertyWriter method setAdHocCompletionCondition.
public void setAdHocCompletionCondition(AdHocCompletionCondition adHocCompletionCondition) {
FormalExpression e = bpmn2.createFormalExpression();
ScriptTypeValue s = adHocCompletionCondition.getValue();
e.setLanguage(Scripts.scriptLanguageToUri(s.getLanguage()));
e.setBody(asCData(s.getScript()));
process.setCompletionCondition(e);
}
Aggregations