Search in sources :

Example 26 with FormalExpression

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);
}
Also used : FormalExpression(org.eclipse.bpmn2.FormalExpression) ScriptTypeValue(org.kie.workbench.common.stunner.bpmn.definition.property.task.ScriptTypeValue)

Aggregations

FormalExpression (org.eclipse.bpmn2.FormalExpression)24 DataInputAssociation (org.eclipse.bpmn2.DataInputAssociation)11 ArrayList (java.util.ArrayList)10 DataInput (org.eclipse.bpmn2.DataInput)10 DataOutputAssociation (org.eclipse.bpmn2.DataOutputAssociation)9 DataOutput (org.eclipse.bpmn2.DataOutput)8 List (java.util.List)7 Assignment (org.eclipse.bpmn2.Assignment)7 InputSet (org.eclipse.bpmn2.InputSet)7 ItemAwareElement (org.eclipse.bpmn2.ItemAwareElement)7 SimpleFeatureMapEntry (org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.SimpleFeatureMapEntry)6 ScriptTypeValue (org.kie.workbench.common.stunner.bpmn.definition.property.task.ScriptTypeValue)6 Parameter (bpsim.Parameter)5 RootElement (org.eclipse.bpmn2.RootElement)5 NormalDistributionType (bpsim.NormalDistributionType)4 PoissonDistributionType (bpsim.PoissonDistributionType)4 TimeParameters (bpsim.TimeParameters)4 UniformDistributionType (bpsim.UniformDistributionType)4 Entry (java.util.Map.Entry)4 InputOutputSpecification (org.eclipse.bpmn2.InputOutputSpecification)4