Package org.jbpm.compiler.xml

Examples of org.jbpm.compiler.xml.ProcessBuildData


    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("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


    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;
View Full Code Here

    parser.startElementBuilder(localName, attrs);

    String id = attrs.getValue("id");
    String errorCode = attrs.getValue("errorCode");

    ProcessBuildData buildData = (ProcessBuildData) parser.getData();
    Map<String, Error> errors = (Map<String, Error>) buildData.getMetaData("Errors");
        if (errors == null) {
          errors = new HashMap<String, Error>();
            buildData.setMetaData("Errors", errors);
        }
        Error e = new Error(id, errorCode);
        errors.put(id, e);
    return e;
  }
View Full Code Here

        ItemDefinition itemDefinition = itemDefinitions.get(itemRef);
        if (itemDefinition == null) {
            throw new IllegalArgumentException("Could not find itemDefinition " + itemRef);
        }
       
        ProcessBuildData buildData = (ProcessBuildData) parser.getData();
    Map<String, Message> messages = (Map<String, Message>)
            ((ProcessBuildData) parser.getData()).getMetaData("Messages");
        if (messages == null) {
            messages = new HashMap<String, Message>();
            buildData.setMetaData("Messages", messages);
        }
        Message message = new Message(id);
        message.setType(itemDefinition.getStructureRef());
        messages.put(id, message);
    return message;
View Full Code Here

    parser.startElementBuilder(localName, attrs);

    String id = attrs.getValue("id");
    String name = attrs.getValue("name");

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

TOP

Related Classes of org.jbpm.compiler.xml.ProcessBuildData

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.