public Esb(org.w3c.dom.Node esb) {
   this.uuid = "oryx_" + UUID.randomUUID().toString();
   NamedNodeMap attributes = esb.getAttributes();
   this.name = JpdlToJson.getAttribute(attributes, "name");
   this.category = JpdlToJson.getAttribute(attributes, "category");
   this.service = JpdlToJson.getAttribute(attributes, "service");
   this.bounds = JpdlToJson.getBounds(attributes.getNamedItem("g"));
   // TODO add part
 }
  public StartEvent(org.w3c.dom.Node startEvent) {
    this.uuid = "oryx_" + UUID.randomUUID().toString();
    NamedNodeMap attributes = startEvent.getAttributes();
    this.name = JpdlToJson.getAttribute(attributes, "name");
    this.bounds = JpdlToJson.getBounds(attributes.getNamedItem("g"));

    this.bounds.setUlx(this.bounds.getUlx() + 9);
    this.bounds.setUly(this.bounds.getUly() + 9);
    this.bounds.setWidth(30);
    this.bounds.setHeight(30);
  }
Esempio n. 3
0
  public And(org.w3c.dom.Node and) {
    this.uuid = "oryx_" + UUID.randomUUID().toString();
    NamedNodeMap attributes = and.getAttributes();
    this.name = JpdlToJson.getAttribute(attributes, "name");
    this.bounds = JpdlToJson.getBounds(attributes.getNamedItem("g"));

    this.bounds.setUlx(this.bounds.getUlx() + 4);
    this.bounds.setUly(this.bounds.getUly() + 4);
    this.bounds.setWidth(40);
    this.bounds.setHeight(40);
  }
Esempio n. 4
0
  public Task(org.w3c.dom.Node task) {
    this.uuid = "oryx_" + UUID.randomUUID().toString();
    NamedNodeMap attributes = task.getAttributes();
    this.name = JpdlToJson.getAttribute(attributes, "name");
    this.assignee = JpdlToJson.getAttribute(attributes, "assignee");
    this.candidateGroups = JpdlToJson.getAttribute(attributes, "candidate-groups");
    this.candidateUsers = JpdlToJson.getAttribute(attributes, "candidate-users");
    this.swimlane = JpdlToJson.getAttribute(attributes, "swimlane");

    this.bounds = JpdlToJson.getBounds(attributes.getNamedItem("g"));
  }