protected void writeMetaData(final Node node, final StringBuilder xmlDump) { XmlBPMNProcessDumper.writeMetaData(getMetaData(node), xmlDump); }
protected void visitHeader(WorkflowProcess process, StringBuilder xmlDump, int metaDataType) { Map<String, Object> metaData = getMetaData(process.getMetaData()); Set<String> imports = ((org.jbpm.process.core.Process) process).getImports(); Map<String, String> globals = ((org.jbpm.process.core.Process) process).getGlobals(); if ((imports != null && !imports.isEmpty()) || (globals != null && globals.size() > 0) || !metaData.isEmpty()) { xmlDump.append(" <extensionElements>" + EOL); if (imports != null) { for (String s: imports) { xmlDump.append(" <tns:import name=\"" + s + "\" />" + EOL); } } if (globals != null) { for (Map.Entry<String, String> global: globals.entrySet()) { xmlDump.append(" <tns:global identifier=\"" + global.getKey() + "\" type=\"" + global.getValue() + "\" />" + EOL); } } writeMetaData(getMetaData(process.getMetaData()), xmlDump); xmlDump.append(" </extensionElements>" + EOL); } // TODO: function imports // TODO: exception handlers VariableScope variableScope = (VariableScope) ((org.jbpm.process.core.Process) process).getDefaultContext(VariableScope.VARIABLE_SCOPE); if (variableScope != null) { visitVariables(variableScope.getVariables(), xmlDump); } visitLanes(process, xmlDump); }
xmlDump.append(">" + EOL + " <extensionElements>" + EOL); writeMetaData(metaData, xmlDump); xmlDump.append(" </extensionElements>" + EOL + " </property>" + EOL); xmlDump.append(">" + EOL + " <extensionElements>" + EOL); writeMetaData(metaData, xmlDump); xmlDump.append(" </extensionElements>" + EOL + " </property>" + EOL);
protected void writeMetaData(final Node node, final StringBuilder xmlDump) { XmlBPMNProcessDumper.writeMetaData(getMetaData(node), xmlDump); }
protected void visitHeader(WorkflowProcess process, StringBuilder xmlDump, int metaDataType) { Map<String, Object> metaData = getMetaData(process.getMetaData()); Set<String> imports = ((org.jbpm.process.core.Process) process).getImports(); Map<String, String> globals = ((org.jbpm.process.core.Process) process).getGlobals(); if ((imports != null && !imports.isEmpty()) || (globals != null && globals.size() > 0) || !metaData.isEmpty()) { xmlDump.append(" <extensionElements>" + EOL); if (imports != null) { for (String s: imports) { xmlDump.append(" <tns:import name=\"" + s + "\" />" + EOL); } } if (globals != null) { for (Map.Entry<String, String> global: globals.entrySet()) { xmlDump.append(" <tns:global identifier=\"" + global.getKey() + "\" type=\"" + global.getValue() + "\" />" + EOL); } } writeMetaData(getMetaData(process.getMetaData()), xmlDump); xmlDump.append(" </extensionElements>" + EOL); } // TODO: function imports // TODO: exception handlers VariableScope variableScope = (VariableScope) ((org.jbpm.process.core.Process) process).getDefaultContext(VariableScope.VARIABLE_SCOPE); if (variableScope != null) { visitVariables(variableScope.getVariables(), xmlDump); } visitLanes(process, xmlDump); }
xmlDump.append(">" + EOL + " <extensionElements>" + EOL); writeMetaData(metaData, xmlDump); xmlDump.append(" </extensionElements>" + EOL + " </property>" + EOL); xmlDump.append(">" + EOL + " <extensionElements>" + EOL); writeMetaData(metaData, xmlDump); xmlDump.append(" </extensionElements>" + EOL + " </property>" + EOL);