@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"); WorkflowProcess process = (WorkflowProcess) parser.getParent(); List<Lane> lanes = (List<Lane>) ((RuleFlowProcess) process).getMetaData(LaneHandler.LANES); if (lanes == null) { lanes = new ArrayList<Lane>(); ((RuleFlowProcess) process).setMetaData(LaneHandler.LANES, lanes); } Lane lane = new Lane(id); lane.setName(name); lanes.add(lane); return lane; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); final String id = attrs.getValue( "id" ); final String name = attrs.getValue( "name" ); final String version = attrs.getValue( "version" ); final String type = attrs.getValue( "type" ); final String packageName = attrs.getValue( "package-name" ); final String routerLayout = attrs.getValue( "routerLayout" ); RuleFlowProcess process = new RuleFlowProcess(); process.setId( id ); process.setName( name ); process.setVersion( version ); process.setType( type ); process.setPackageName( packageName ); if (routerLayout != null) { process.setMetaData("routerLayout", new Integer(routerLayout)); } ((ProcessBuildData)parser.getData()).addProcess( process ); return process; }
@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"); logger.debug("Found case role with id {} and name {}", id, name); RuleFlowProcess process = ((RuleFlowProcess) parser.getParent(RuleFlowProcess.class)); String caseRoles = (String) process.getMetaData("customCaseRoles"); if (caseRoles == null) { caseRoles = name; } else { caseRoles += "," + name; } process.setMetaData("customCaseRoles", caseRoles); // save case roles so they can be easily referenced later for human task performer ProcessBuildData buildData = (ProcessBuildData) parser.getData(); Map<String, Role> roles = (Map<String, Role>) buildData.getMetaData("Roles"); if (roles == null) { roles = new HashMap<String, Role>(); buildData.setMetaData("Roles", roles); } Role role = new Role(id, name); roles.put(id, role); return role; }
process.setMetaData(ProcessHandler.LINKS, links); } else if (nodeContainer instanceof CompositeNode) { CompositeNode subprocess = (CompositeNode) nodeContainer;
if (connections == null) { connections = new ArrayList<SequenceFlow>(); process.setMetaData(ProcessHandler.CONNECTIONS, connections);
process.setMetaData(ProcessHandler.LINKS, links); } else if (nodeContainer instanceof CompositeNode) { CompositeNode subprocess = (CompositeNode) nodeContainer;
if (associations == null) { associations = new ArrayList<Association>(); process.setMetaData(ASSOCIATIONS, associations);
process.setMetaData("Definitions", parser.getParent()); process.setMetaData("Bpmn2Imports", typedImports); process.setMetaData("ItemDefinitions", itemDefinitions);
process.setMetaData("Definitions", parser.getParent()); process.setMetaData("CmmnImports", typedImports); process.setMetaData("ItemDefinitions", itemDefinitions);
public Object end(final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { final Element element = parser.endElementBuilder(); Definitions definitions = (Definitions) parser.getCurrent(); String id = element.getAttribute("id"); String namespace = element.getAttribute("targetNamespace"); ProcessBuildData buildData = (ProcessBuildData) parser.getData(); List<Process> processes = ((ProcessBuildData) parser.getData()).getProcesses(); String namespaceN1 = (String) parser.getNamespaceURI("ns2"); for (Process process : processes) { RuleFlowProcess ruleFlowProcess = (RuleFlowProcess) process; ruleFlowProcess.setMetaData("TargetNamespace", namespace); postProcessNodes(ruleFlowProcess, ruleFlowProcess, buildData, parser); } definitions.setId(id); definitions.setTargetNamespace(namespace); return definitions; }
public Object end(final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { final Element element = parser.endElementBuilder(); Definitions definitions = (Definitions) parser.getCurrent(); String namespace = element.getAttribute("targetNamespace"); List<Process> processes = ((ProcessBuildData) parser.getData()).getProcesses(); Map<String, ItemDefinition> itemDefinitions = (Map<String, ItemDefinition>) ((ProcessBuildData) parser.getData()).getMetaData("ItemDefinitions"); List<Interface> interfaces = (List<Interface>) ((ProcessBuildData) parser.getData()).getMetaData("Interfaces"); for (Process process : processes) { RuleFlowProcess ruleFlowProcess = (RuleFlowProcess)process; ruleFlowProcess.setMetaData("TargetNamespace", namespace); postProcessItemDefinitions(ruleFlowProcess, itemDefinitions, parser.getClassLoader()); postProcessInterfaces(ruleFlowProcess, interfaces); } definitions.setTargetNamespace(namespace); return definitions; }
process.setId(processId); process.setName("CESP Process"); process.setMetaData("Compensation", true);
process.setMetaData("routerLayout", 1);
process.setId(processId); process.setName("CESP Process"); process.setMetaData("Compensation", true);
process.setId(processId); process.setName("CESP Process"); process.setMetaData("Compensation", true);
process.setId(processId); process.setName("CESP Process"); process.setMetaData("Compensation", true);
@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"); WorkflowProcess process = (WorkflowProcess) parser.getParent(); List<Lane> lanes = (List<Lane>) ((RuleFlowProcess) process).getMetaData(LaneHandler.LANES); if (lanes == null) { lanes = new ArrayList<Lane>(); ((RuleFlowProcess) process).setMetaData(LaneHandler.LANES, lanes); } Lane lane = new Lane(id); lane.setName(name); lanes.add(lane); return lane; }
public Object start(final String uri, final String localName, final Attributes attrs, final ExtensibleXmlParser parser) throws SAXException { parser.startElementBuilder( localName, attrs ); final String id = attrs.getValue( "id" ); final String name = attrs.getValue( "name" ); final String version = attrs.getValue( "version" ); final String type = attrs.getValue( "type" ); final String packageName = attrs.getValue( "package-name" ); final String routerLayout = attrs.getValue( "routerLayout" ); RuleFlowProcess process = new RuleFlowProcess(); process.setId( id ); process.setName( name ); process.setVersion( version ); process.setType( type ); process.setPackageName( packageName ); if (routerLayout != null) { process.setMetaData("routerLayout", new Integer(routerLayout)); } ((ProcessBuildData)parser.getData()).addProcess( process ); return process; }
public Object end(final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { final Element element = parser.endElementBuilder(); Definitions definitions = (Definitions) parser.getCurrent(); String id = element.getAttribute("id"); String namespace = element.getAttribute("targetNamespace"); ProcessBuildData buildData = (ProcessBuildData) parser.getData(); List<Process> processes = ((ProcessBuildData) parser.getData()).getProcesses(); String namespaceN1 = (String) parser.getNamespaceURI("ns2"); for (Process process : processes) { RuleFlowProcess ruleFlowProcess = (RuleFlowProcess) process; ruleFlowProcess.setMetaData("TargetNamespace", namespace); postProcessNodes(ruleFlowProcess, ruleFlowProcess, buildData, parser); } definitions.setId(id); definitions.setTargetNamespace(namespace); return definitions; }
public Object end(final String uri, final String localName, final ExtensibleXmlParser parser) throws SAXException { final Element element = parser.endElementBuilder(); Definitions definitions = (Definitions) parser.getCurrent(); String namespace = element.getAttribute("targetNamespace"); List<Process> processes = ((ProcessBuildData) parser.getData()).getProcesses(); Map<String, ItemDefinition> itemDefinitions = (Map<String, ItemDefinition>) ((ProcessBuildData) parser.getData()).getMetaData("ItemDefinitions"); List<Interface> interfaces = (List<Interface>) ((ProcessBuildData) parser.getData()).getMetaData("Interfaces"); for (Process process : processes) { RuleFlowProcess ruleFlowProcess = (RuleFlowProcess)process; ruleFlowProcess.setMetaData("TargetNamespace", namespace); postProcessItemDefinitions(ruleFlowProcess, itemDefinitions, parser.getClassLoader()); postProcessInterfaces(ruleFlowProcess, interfaces); } definitions.setTargetNamespace(namespace); return definitions; }