Search in sources :

Example 21 with Property

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

the class ProcessPropertyWriter method setProcessVariables.

public void setProcessVariables(ProcessVariables processVariables) {
    String value = processVariables.getValue();
    DeclarationList declarationList = DeclarationList.fromString(value);
    List<Property> properties = process.getProperties();
    declarationList.getDeclarations().forEach(decl -> {
        VariableScope.Variable variable = variableScope.declare(this.process.getId(), decl.getIdentifier(), decl.getType());
        properties.add(variable.getTypedIdentifier());
        this.itemDefinitions.add(variable.getTypeDeclaration());
    });
}
Also used : DeclarationList(org.kie.workbench.common.stunner.bpmn.backend.converters.customproperties.DeclarationList) Property(org.eclipse.bpmn2.Property)

Example 22 with Property

use of org.eclipse.bpmn2.Property in project atlasmap by atlasmap.

the class BaseMarshallerTest method generatePropertyReferenceMapping.

protected AtlasMapping generatePropertyReferenceMapping() {
    AtlasMapping mapping = generateAtlasMapping();
    PropertyField inputField = new PropertyField();
    inputField.setName("foo");
    Mapping fm = (Mapping) mapping.getMappings().getMapping().get(0);
    fm.getInputField().add(inputField);
    Property p = new Property();
    p.setName("foo");
    p.setValue("bar");
    mapping.setProperties(new Properties());
    mapping.getProperties().getProperty().add(p);
    return mapping;
}
Also used : AtlasMapping(io.atlasmap.v2.AtlasMapping) PropertyField(io.atlasmap.v2.PropertyField) Mapping(io.atlasmap.v2.Mapping) AtlasMapping(io.atlasmap.v2.AtlasMapping) Properties(io.atlasmap.v2.Properties) Property(io.atlasmap.v2.Property)

Example 23 with Property

use of org.eclipse.bpmn2.Property in project webcert by sklintyg.

the class GrpCollectPollerTest method buildResp.

private CollectResponseType buildResp(ProgressStatusType progressStatusType) {
    CollectResponseType resp = new CollectResponseType();
    resp.setProgressStatus(progressStatusType);
    Property p = new Property();
    p.setName("Subject.SerialNumber");
    p.setValue(PERSON_ID);
    resp.getAttributes().add(p);
    return resp;
}
Also used : CollectResponseType(se.funktionstjanster.grp.v1.CollectResponseType) Property(se.funktionstjanster.grp.v1.Property)

Aggregations

Property (org.eclipse.bpmn2.Property)9 Property (io.atlasmap.v2.Property)7 ArrayList (java.util.ArrayList)7 Process (org.eclipse.bpmn2.Process)7 RootElement (org.eclipse.bpmn2.RootElement)6 Properties (io.atlasmap.v2.Properties)5 DataInputAssociation (org.eclipse.bpmn2.DataInputAssociation)5 DataOutputAssociation (org.eclipse.bpmn2.DataOutputAssociation)5 ItemDefinition (org.eclipse.bpmn2.ItemDefinition)5 List (java.util.List)4 DataInput (org.eclipse.bpmn2.DataInput)4 DataOutput (org.eclipse.bpmn2.DataOutput)4 FormalExpression (org.eclipse.bpmn2.FormalExpression)4 AdHocSubProcess (org.eclipse.bpmn2.AdHocSubProcess)3 Definitions (org.eclipse.bpmn2.Definitions)3 FlowElement (org.eclipse.bpmn2.FlowElement)3 SubProcess (org.eclipse.bpmn2.SubProcess)3 Test (org.junit.Test)3 FloatingParameterType (bpsim.FloatingParameterType)2 Parameter (bpsim.Parameter)2