Refine search
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); final String processRef = attrs.getValue("bpmnElement"); ProcessInfo info = new ProcessInfo(processRef); return info; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); String id = attrs.getValue("id"); String name = attrs.getValue("name"); String implRef = attrs.getValue("implementationRef"); Interface i = (Interface) parser.getParent(); Operation operation = i.addOperation(id, name); if (implRef != null) { operation.setImplementationRef(implRef); } return operation; }
@SuppressWarnings("unchecked") public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); String id = attrs.getValue("id"); String externalRef = attrs.getValue("externalRef"); if (externalRef.contains(":")) { externalRef = externalRef.split(":")[1]; } logger.debug("Found process reference with id {} and external ref {}", id, externalRef); ProcessBuildData buildData = (ProcessBuildData) parser.getData(); Map<String, String> processes = (Map<String, String>) buildData.getMetaData("ProcessElements"); if (processes == null) { processes = new HashMap<String, String>(); buildData.setMetaData("ProcessElements", processes); } processes.put(id, externalRef); return null; }
@SuppressWarnings("unchecked") public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); String id = attrs.getValue("id"); ProcessBuildData buildData = (ProcessBuildData) parser.getData(); Map<String, Sentry> sentries = (Map<String, Sentry>) buildData.getMetaData("Sentries"); Sentry sentryStub = sentries.get(id); if (sentryStub == null) { sentryStub = new Sentry(id, null, null); sentries.put(id, sentryStub); } return sentryStub; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); final String elementRef = attrs.getValue("bpmnElement"); NodeInfo nodeInfo = new NodeInfo(elementRef); ProcessInfo processInfo = (ProcessInfo) parser.getParent(); processInfo.addNodeInfo(nodeInfo); return nodeInfo; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); Object parent = parser.getParent(); final String name = attrs.getValue("name"); emptyAttributeCheck(localName, "name", name, parser); return new MetaDataWrapper(parent, name); }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); Node node = (Node) parser.getParent(); final String name = attrs.getValue("name"); emptyAttributeCheck(localName, "name", name, parser); return new MetaDataWrapper(node, name); }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); final String elementRef = attrs.getValue("bpmnElement"); ConnectionInfo info = new ConnectionInfo(elementRef); ProcessInfo processInfo = (ProcessInfo) parser.getParent(); processInfo.addConnectionInfo(info); return info; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); final String type = attrs.getValue("importType"); final String location = attrs.getValue("location"); final String namespace = attrs.getValue("namespace"); ProcessBuildData buildData = (ProcessBuildData) parser.getData(); if (type != null && location != null && namespace != null) { List<Bpmn2Import> typedImports = (List<Bpmn2Import>) buildData.getMetaData("Bpmn2Imports"); if (typedImports == null) { typedImports = new ArrayList< Bpmn2Import>(); buildData.setMetaData("Bpmn2Imports", typedImports); } typedImports.add(new Bpmn2Import(type, location, namespace)); } return null; }
@SuppressWarnings("unchecked") public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); // according to the (Semantic.)xsd, both the name and structureRef are optional String id = attrs.getValue("id"); String name = attrs.getValue("name"); // referred to by the signalEventDefinition.signalRef attr String structureRef = attrs.getValue("structureRef"); ProcessBuildData buildData = (ProcessBuildData) parser.getData(); Map<String, Signal> signals = (Map<String, Signal>) buildData.getMetaData("Signals"); if (signals == null) { signals = new HashMap<String, Signal>(); buildData.setMetaData("Signals", signals); } Signal s = new Signal(id, name, structureRef); signals.put(id, s); return s; }
@SuppressWarnings("unchecked") public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); String id = attrs.getValue("id"); String externalRef = attrs.getValue("externalRef"); String name = attrs.getValue("name"); String implementation = attrs.getValue("implementationType"); String namespace = ""; if (externalRef.contains(":")) { String[] elements = externalRef.split(":"); namespace = elements[0]; externalRef = elements[1]; } logger.debug("Found process reference with id {} and external ref {}", id, externalRef); ProcessBuildData buildData = (ProcessBuildData) parser.getData(); Map<String, Decision> decisions = (Map<String, Decision>) buildData.getMetaData("DecisionElements"); if (decisions == null) { decisions = new HashMap<String, Decision>(); buildData.setMetaData("DecisionElements", decisions); } if (DMN_IMPLEMENTATION_TYPE.equals(implementation)) { decisions.put(id, new Decision(namespace, externalRef, name)); } return null; }
@SuppressWarnings("unchecked") public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); String id = attrs.getValue("id"); String escalationCode = attrs.getValue("escalationCode"); ProcessBuildData buildData = (ProcessBuildData) parser.getData(); Map<String, Escalation> escalations = (Map<String, Escalation>) buildData.getMetaData(ProcessHandler.ESCALATIONS); if (escalations == null) { escalations = new HashMap<String, Escalation>(); buildData.setMetaData(ProcessHandler.ESCALATIONS, escalations); } Escalation e = new Escalation(id, escalationCode); escalations.put(id, e); return e; }
@SuppressWarnings("unchecked") public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); String id = attrs.getValue("id"); String definitionRef = attrs.getValue("definitionRef"); logger.debug("Found plan item with id {} and definitionRef {}", id, definitionRef); // save plan item so they can be easily referenced later ProcessBuildData buildData = (ProcessBuildData) parser.getData(); Map<String, PlanItem> planItems = (Map<String, PlanItem>) buildData.getMetaData("PlanItems"); if (planItems == null) { planItems = new HashMap<String, PlanItem>(); buildData.setMetaData("PlanItems", planItems); } PlanItem planItem = new PlanItem(id, definitionRef); planItems.put(definitionRef, planItem); return planItem; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); final Node node = createNode(attrs); String id = attrs.getValue("id"); node.setMetaData("UniqueId", id); final String name = attrs.getValue("name"); node.setName(name); AtomicInteger idGen = (AtomicInteger) parser.getMetaData().get("idGen"); node.setId(idGen.getAndIncrement()); return node; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); NodeContainer nodeContainer = (NodeContainer) parser.getParent(); final Node node = createNode(); final String id = attrs.getValue("id"); node.setId(new Long(id)); final String name = attrs.getValue("name"); node.setName(name); nodeContainer.addNode(node); return node; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); WorkflowProcessImpl process = ( WorkflowProcessImpl ) parser.getParent(); final String name = attrs.getValue( "name" ); emptyAttributeCheck( localName, "name", name, parser ); java.util.Set<String> list = process.getImports(); if ( list == null ) { list = new HashSet<String>(); process.setImports( list ); } list.add( name ); return null; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); WorkflowProcessImpl process = ( WorkflowProcessImpl ) parser.getParent(); final String name = attrs.getValue( "name" ); emptyAttributeCheck( localName, "name", name, parser ); java.util.List<String> list = process.getFunctionImports(); if ( list == null ) { list = new ArrayList<String>(); process.setFunctionImports( list ); } list.add( name ); return null; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); CompositeNode compositeNode = (CompositeNode) parser.getParent(); final String type = attrs.getValue("type"); emptyAttributeCheck(localName, "type", type, parser); final String nodeId = attrs.getValue("nodeId"); emptyAttributeCheck(localName, "nodeId", nodeId, parser); final String nodeOutType = attrs.getValue("nodeOutType"); emptyAttributeCheck(localName, "nodeOutType", nodeOutType, parser); compositeNode.linkOutgoingConnections(new Long(nodeId), nodeOutType, type); return null; }
@SuppressWarnings("unchecked") public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); String id = attrs.getValue("id"); String type = attrs.getValue("structureRef"); if (type == null || type.trim().length() == 0) { type = "java.lang.Object"; } ProcessBuildData buildData = (ProcessBuildData) parser.getData(); Map<String, ItemDefinition> itemDefinitions = (Map<String, ItemDefinition>) buildData.getMetaData("ItemDefinitions"); if (itemDefinitions == null) { itemDefinitions = new HashMap<String, ItemDefinition>(); buildData.setMetaData("ItemDefinitions", itemDefinitions); } ItemDefinition itemDefinition = new ItemDefinition(id); itemDefinition.setStructureRef(type); itemDefinitions.put(id, itemDefinition); return itemDefinition; }
@SuppressWarnings("unchecked") public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder(localName, attrs); String id = attrs.getValue("id"); String name = attrs.getValue("name"); String implRef = attrs.getValue("implementationRef"); if (name == null || name.isEmpty()) { throw new IllegalArgumentException("Interface name is required attribute"); } ProcessBuildData buildData = (ProcessBuildData) parser.getData(); List<Interface> interfaces = (List<Interface>) buildData.getMetaData("Interfaces"); if (interfaces == null) { interfaces = new ArrayList<Interface>(); buildData.setMetaData("Interfaces", interfaces); } Interface i = new Interface(id, name); if (implRef != null) { i.setImplementationRef(implRef); } interfaces.add(i); return i; }