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());
});
}
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;
}
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;
}
Aggregations