Package org.drools.process.core.impl

Examples of org.drools.process.core.impl.WorkImpl


    }
   
    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


    }
   
    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

    }
   
    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

    }
   
    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

    }

    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

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

    public void setNode(Node node) {
        super.setNode(node);
        if (this.workDefinition != null) {
            Work work = getWorkItemNode().getWork();
            if (work == null) {
                work = new WorkImpl();
                work.setName(workDefinition.getName());
                getWorkItemNode().setWork(work);
            }
            work.setParameterDefinitions(workDefinition.getParameters());
        }
View Full Code Here

   
    public void setWorkDefinition(WorkDefinition workDefinition) {
        this.workDefinition = workDefinition;
        Work work = getWorkItemNode().getWork();
        if (work == null) {
            work = new WorkImpl();
            work.setName(workDefinition.getName());
            getWorkItemNode().setWork(work);
        }
        work.setParameterDefinitions(workDefinition.getParameters());
    }
View Full Code Here

       
        return composite;
    }
   
    protected Work updateValue(Work value) {
        Work work = new WorkImpl();
        work.setName("Human Task");
        work.setParameter("TaskName", nameText.getText());
        work.setParameter("ActorId", actorText.getText());
        work.setParameter("Comment", commentText.getText());
        work.setParameter("Priority", priorityText.getText());
        work.setParameter("Skippable", skippableButton.getSelection() + "");
        work.setParameter("Content", contentText.getText());
        work.setParameterDefinitions(((Work) value).getParameterDefinitions());
        return work;
    }
View Full Code Here

    public void setNode(Node node) {
        super.setNode(node);
        if (this.workDefinition != null) {
            Work work = getWorkItemNode().getWork();
            if (work == null) {
                work = new WorkImpl();
                work.setName(workDefinition.getName());
                getWorkItemNode().setWork(work);
            }
            work.setParameterDefinitions(workDefinition.getParameters());
        }
View Full Code Here

TOP

Related Classes of org.drools.process.core.impl.WorkImpl

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.