Package org.drools.bpmn2.xml

Examples of org.drools.bpmn2.xml.BPMNDISemanticModule


  public Object start(final String uri, final String localName,
                  final Attributes attrs, final ExtensibleXmlParser parser)
      throws SAXException {
    parser.startElementBuilder(localName, attrs);
    return new Definitions();
  }
View Full Code Here


  }

  public Object end(final String uri, final String localName,
                final ExtensibleXmlParser parser) throws SAXException {
    final Element element = parser.endElementBuilder();
    Definitions definitions = (Definitions) parser.getCurrent();
        RuleFlowProcess process = (RuleFlowProcess)
      ((ProcessBuildData) parser.getData()).getProcess();
    String namespace = element.getAttribute("targetNamespace");
    process.setMetaData("TargetNamespace", namespace);
    definitions.setTargetNamespace(namespace);
    return definitions;
  }
View Full Code Here

  public Object start(final String uri, final String localName,
                  final Attributes attrs, final ExtensibleXmlParser parser)
      throws SAXException {
    parser.startElementBuilder(localName, attrs);
    return new Definitions();
  }
View Full Code Here

  }

  public Object end(final String uri, final String localName,
                final ExtensibleXmlParser parser) throws SAXException {
    final Element element = parser.endElementBuilder();
    Definitions definitions = (Definitions) parser.getCurrent();
        RuleFlowProcess process = (RuleFlowProcess)
      ((ProcessBuildData) parser.getData()).getProcess();
    String namespace = element.getAttribute("targetNamespace");
    process.setMetaData("TargetNamespace", namespace);
    definitions.setTargetNamespace(namespace);
    return definitions;
  }
View Full Code Here

    Map<String, Escalation> escalations = (Map<String, Escalation>) buildData.getMetaData("Escalations");
        if (escalations == null) {
          escalations = new HashMap<String, Escalation>();
            buildData.setMetaData("Escalations", escalations);
        }
        Escalation e = new Escalation(id, escalationCode);
        escalations.put(id, e);
    return e;
  }
View Full Code Here

    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);
        interfaces.add(i);
    return i;
  }
View Full Code Here

    parser.startElementBuilder(localName, attrs);

    String id = attrs.getValue("id");
    String name = attrs.getValue("name");
   
    Interface i = (Interface) parser.getParent();
        Operation operation = i.addOperation(id, name);
    return operation;
  }
View Full Code Here

        }
        Message message = messages.get(messageId);
        if (message == null) {
            throw new IllegalArgumentException("Could not find message " + messageId);
        }
        Operation operation = (Operation) parser.getParent();
        operation.setMessage(message);
    return parser.getCurrent();
  }
View Full Code Here

        List<Interface> interfaces = (List<Interface>)
            ((ProcessBuildData) parser.getData()).getMetaData("Interfaces");
        if (interfaces == null) {
            throw new IllegalArgumentException("No interfaces found");
        }
        Operation operation = null;
        for (Interface i: interfaces) {
            operation = i.getOperation(operationRef);
            if (operation != null) {
                break;
            }
        }
        if (operation == null) {
            throw new IllegalArgumentException("Could not find operation " + operationRef);
        }
        workItemNode.getWork().setParameter("Interface", operation.getInterface().getName());
        workItemNode.getWork().setParameter("Operation", operation.getName());
        workItemNode.getWork().setParameter("ParameterType", operation.getMessage().getType());
    }
View Full Code Here

    String id = attrs.getValue("id");
    String name = attrs.getValue("name");
   
    Interface i = (Interface) parser.getParent();
        Operation operation = i.addOperation(id, name);
    return operation;
  }
View Full Code Here

TOP

Related Classes of org.drools.bpmn2.xml.BPMNDISemanticModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.