Examples of ProcessBuildData


Examples of org.jbpm.compiler.xml.ProcessBuildData

    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

Examples of org.jbpm.compiler.xml.ProcessBuildData

        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

Examples of org.jbpm.compiler.xml.ProcessBuildData

    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
Copyright © 2018 www.massapi.com. 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.