use of org.jbpm.bpmn2.core.CorrelationProperty in project kogito-runtimes by kiegroup.
the class CorrelationPropertyHandler method start.
@Override
public Object start(String uri, String localName, Attributes attrs, ExtensibleXmlParser parser) throws SAXException {
parser.startElementBuilder(localName, attrs);
String correlationPropertyId = attrs.getValue("id");
String correlationPropertyName = attrs.getValue("name");
String type = attrs.getValue("type");
CorrelationProperty correlationProperty = new CorrelationProperty();
correlationProperty.setId(correlationPropertyId);
correlationProperty.setName(correlationPropertyName);
correlationProperty.setType(HandlerUtil.definitions(parser).get(type).getStructureRef());
HandlerUtil.correlationProperties(parser).put(correlationPropertyId, correlationProperty);
return correlationProperty;
}
Aggregations