Search in sources :

Example 16 with DataInputAssociation

use of org.eclipse.bpmn2.DataInputAssociation in project kie-wb-common by kiegroup.

the class CustomInput method input.

private DataInputAssociation input(Object value) {
    // first we declare the type of this assignment
    // // then we declare the input that will provide
    // // the value that we assign to `source`
    // // e.g. myInput
    DataInput target = readInputFrom(inputDefinition.name(), typeDef);
    Assignment assignment = assignment(value.toString(), target.getId());
    // then we create the actual association between the two
    // e.g. foo := myInput (or, to put it differently, myInput -> foo)
    DataInputAssociation association = associationOf(assignment, target);
    return association;
}
Also used : DataInput(org.eclipse.bpmn2.DataInput) Assignment(org.eclipse.bpmn2.Assignment) DataInputAssociation(org.eclipse.bpmn2.DataInputAssociation)

Example 17 with DataInputAssociation

use of org.eclipse.bpmn2.DataInputAssociation in project kie-wb-common by kiegroup.

the class InputAssignmentWriter method associationOf.

private DataInputAssociation associationOf(Property source, DataInput dataInput) {
    DataInputAssociation dataInputAssociation = bpmn2.createDataInputAssociation();
    dataInputAssociation.getSourceRef().add(source);
    dataInputAssociation.setTargetRef(dataInput);
    return dataInputAssociation;
}
Also used : DataInputAssociation(org.eclipse.bpmn2.DataInputAssociation)

Aggregations

DataInputAssociation (org.eclipse.bpmn2.DataInputAssociation)17 DataInput (org.eclipse.bpmn2.DataInput)11 DataOutputAssociation (org.eclipse.bpmn2.DataOutputAssociation)10 FormalExpression (org.eclipse.bpmn2.FormalExpression)9 ArrayList (java.util.ArrayList)8 DataOutput (org.eclipse.bpmn2.DataOutput)8 InputSet (org.eclipse.bpmn2.InputSet)8 Assignment (org.eclipse.bpmn2.Assignment)7 ItemAwareElement (org.eclipse.bpmn2.ItemAwareElement)7 List (java.util.List)6 SimpleFeatureMapEntry (org.eclipse.emf.ecore.impl.EStructuralFeatureImpl.SimpleFeatureMapEntry)6 Parameter (bpsim.Parameter)5 InputOutputSpecification (org.eclipse.bpmn2.InputOutputSpecification)5 OutputSet (org.eclipse.bpmn2.OutputSet)5 NormalDistributionType (bpsim.NormalDistributionType)4 PoissonDistributionType (bpsim.PoissonDistributionType)4 TimeParameters (bpsim.TimeParameters)4 UniformDistributionType (bpsim.UniformDistributionType)4 Entry (java.util.Map.Entry)4 AdHocSubProcess (org.eclipse.bpmn2.AdHocSubProcess)4