Examples of Work


Examples of org.drools.process.core.Work

    protected void handleNode(final Node node, final Element element, final String uri,
            final String localName, final ExtensibleXmlParser parser) throws SAXException {
      super.handleNode(node, element, uri, localName, parser);
      HumanTaskNode humanTaskNode = (HumanTaskNode) node;
        Work work = humanTaskNode.getWork();
        work.setName("Human Task");
      Map<String, String> dataInputs = new HashMap<String, String>();
      Map<String, String> dataOutputs = new HashMap<String, String>();
      List<String> owners = new ArrayList<String>();
      org.w3c.dom.Node xmlNode = element.getFirstChild();
        while (xmlNode != null) {
View Full Code Here

Examples of org.drools.process.core.Work

        getNode().setName(name);
        return this;
    }
   
    public HumanTaskNodeFactory taskName(String taskName) {
      Work work = getHumanTaskNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
      }
      work.setParameter("TaskName", taskName);
      return this;
    }
View Full Code Here

Examples of org.drools.process.core.Work

      work.setParameter("TaskName", taskName);
      return this;
    }
   
    public HumanTaskNodeFactory actorId(String actorId) {
      Work work = getHumanTaskNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
      }
      work.setParameter("ActorId", actorId);
      return this;
    }
View Full Code Here

Examples of org.drools.process.core.Work

      work.setParameter("ActorId", actorId);
      return this;
    }
   
    public HumanTaskNodeFactory priority(String priority) {
      Work work = getHumanTaskNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
      }
      work.setParameter("Priority", priority);
      return this;
    }
View Full Code Here

Examples of org.drools.process.core.Work

      work.setParameter("Priority", priority);
      return this;
    }
   
    public HumanTaskNodeFactory comment(String comment) {
      Work work = getHumanTaskNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
      }
      work.setParameter("Comment", comment);
      return this;
    }
View Full Code Here

Examples of org.drools.process.core.Work

      work.setParameter("Comment", comment);
      return this;
    }
   
    public HumanTaskNodeFactory skippable(boolean skippable) {
      Work work = getHumanTaskNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
      }
      work.setParameter("Skippable", Boolean.toString(skippable));
      return this;
    }
View Full Code Here

Examples of org.drools.process.core.Work

      work.setParameter("Skippable", Boolean.toString(skippable));
      return this;
    }
   
    public HumanTaskNodeFactory content(String content) {
      Work work = getHumanTaskNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getHumanTaskNode().setWork(work);
      }
      work.setParameter("Content", content);
      return this;
    }
View Full Code Here

Examples of org.drools.process.core.Work

      getWorkItemNode().addOutMapping(parameterName, variableName);
      return this;
    }
   
    public WorkItemNodeFactory workName(String name) {
      Work work = getWorkItemNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getWorkItemNode().setWork(work);
      }
      work.setName(name);
      return this;
    }
View Full Code Here

Examples of org.drools.process.core.Work

      work.setName(name);
      return this;
    }

    public WorkItemNodeFactory workParameter(String name, Object value) {
      Work work = getWorkItemNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getWorkItemNode().setWork(work);
      }
      work.setParameter(name, value);
      return this;
    }
View Full Code Here

Examples of org.drools.process.core.Work

      work.setParameter(name, value);
      return this;
    }
   
    public WorkItemNodeFactory workParameterDefinition(String name, DataType dataType) {
      Work work = getWorkItemNode().getWork();
      if (work == null) {
        work = new WorkImpl();
        getWorkItemNode().setWork(work);
      }
      Set<ParameterDefinition> parameterDefinitions = work.getParameterDefinitions();
      parameterDefinitions.add(new ParameterDefinitionImpl(name, dataType));
      work.setParameterDefinitions(parameterDefinitions);
      return this;
    }
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.