Search in sources :

Example 6 with CorrelationProperty

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;
}
Also used : CorrelationProperty(org.jbpm.bpmn2.core.CorrelationProperty)

Aggregations

CorrelationProperty (org.jbpm.bpmn2.core.CorrelationProperty)6 ArrayList (java.util.ArrayList)2 Collection (java.util.Collection)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 LinkedHashSet (java.util.LinkedHashSet)2 List (java.util.List)2 Map (java.util.Map)2 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)2 Collectors (java.util.stream.Collectors)2 Stream (java.util.stream.Stream)2 BaseAbstractHandler (org.drools.core.xml.BaseAbstractHandler)2 ExtensibleXmlParser (org.drools.core.xml.ExtensibleXmlParser)2 Handler (org.drools.core.xml.Handler)2 Association (org.jbpm.bpmn2.core.Association)2 Collaboration (org.jbpm.bpmn2.core.Collaboration)2 CorrelationKey (org.jbpm.bpmn2.core.CorrelationKey)2 CorrelationSubscription (org.jbpm.bpmn2.core.CorrelationSubscription)2 DataStore (org.jbpm.bpmn2.core.DataStore)2 Definitions (org.jbpm.bpmn2.core.Definitions)2