Examples of Swimlane


Examples of org.jbpm.process.core.context.swimlane.Swimlane

      Map<String, String> laneMapping = new HashMap<String, String>();
      if (lanes != null) {
          for (Lane lane: lanes) {
              String name = lane.getName();
              if (name != null) {
                  Swimlane swimlane = new Swimlane();
                  swimlane.setName(name);
                  process.getSwimlaneContext().addSwimlane(swimlane);
                  laneNames.add(name);
                  for (String flowElementRef: lane.getFlowElements()) {
                      laneMapping.put(flowElementRef, name);
                  }
View Full Code Here

Examples of org.jbpm.process.core.context.swimlane.Swimlane

      getRuleFlowProcess().getVariableScope().getVariables().add(variable);
        return this;
    }
   
    public RuleFlowProcessFactory swimlane(String name) {
      Swimlane swimlane = new Swimlane();
      swimlane.setName(name);
      getRuleFlowProcess().getSwimlaneContext().addSwimlane(swimlane);
      return this;
    }
View Full Code Here

Examples of org.jbpm.process.core.context.swimlane.Swimlane

    protected SwimlanesDialog(Shell parentShell) {
        super(parentShell, "Swimlanes", SwimlaneDialog.class);
    }

    protected Swimlane createItem() {
        return new Swimlane();
    }
View Full Code Here

Examples of org.jbpm.taskmgmt.def.Swimlane

    return swimlaneInstances != null ? swimlaneInstances.get(swimlaneName) : null;
  }

  public SwimlaneInstance createSwimlaneInstance(String swimlaneName)
  {
    Swimlane swimlane = (taskMgmtDefinition != null ? taskMgmtDefinition.getSwimlane(swimlaneName) : null);
    if (swimlane != null)
    {
      return createSwimlaneInstance(swimlane);
    }
    throw new JbpmException("couldn't create swimlane instance for non-existing swimlane " + swimlaneName);
View Full Code Here

Examples of org.jbpm.taskmgmt.def.Swimlane

  }

  public void assign(ExecutionContext executionContext) {
    TaskMgmtInstance taskMgmtInstance = executionContext.getTaskMgmtInstance();

    Swimlane swimlane = task.getSwimlane();
    // if this task is in a swimlane
    if (swimlane != null) {

      // if this is a task assignment for a start-state
      if (isStartTaskInstance()) {
View Full Code Here

Examples of org.jbpm.taskmgmt.def.Swimlane

      {
        addWarning("there's a swimlane without a name");
      }
      else
      {
        Swimlane swimlane = new Swimlane(swimlaneName);
        Element assignmentElement = swimlaneElement.element("assignment");

        if (assignmentElement != null)
        {

          if ((assignmentElement.attribute("actor-id") != null) || (assignmentElement.attribute("pooled-actors") != null))
          {
            swimlane.setActorIdExpression(assignmentElement.attributeValue("actor-id"));
            swimlane.setPooledActorsExpression(assignmentElement.attributeValue("pooled-actors"));

          }
          else
          {
            Delegation assignmentDelegation = readAssignmentDelegation(assignmentElement);
            swimlane.setAssignmentDelegation(assignmentDelegation);
          }
        }
        taskMgmtDefinition.addSwimlane(swimlane);
      }
    }
View Full Code Here

Examples of org.jbpm.taskmgmt.def.Swimlane

    Element assignmentElement = taskElement.element("assignment");

    // if there is a swimlane attribute specified
    if (swimlaneName != null)
    {
      Swimlane swimlane = taskMgmtDefinition.getSwimlane(swimlaneName);
      if (swimlane == null)
      {
        addWarning("task references unknown swimlane '" + swimlaneName + "':" + taskElement.asXML());
      }
      else
View Full Code Here

Examples of org.jbpm.taskmgmt.def.Swimlane

    if ((taskMgmtDefinition != null) && (taskMgmtDefinition.getSwimlanes() != null))
    {
      for (Swimlane swimlane : taskMgmtDefinition.getSwimlanes().values())
      {
        Task startTask = taskMgmtDefinition.getStartTask();
        Swimlane startTaskSwimlane = (startTask != null ? startTask.getSwimlane() : null);

        if ((swimlane.getAssignmentDelegation() == null)
             && (swimlane.getActorIdExpression()==null)
             && (swimlane.getPooledActorsExpression()==null)
             && (swimlane != startTaskSwimlane))
View Full Code Here

Examples of org.jbpm.taskmgmt.def.Swimlane

    super.setUp();
   
    processDefinition = new ProcessDefinition();
    taskMgmtDefinition = new TaskMgmtDefinition();
    processDefinition.addDefinition(taskMgmtDefinition);
    buyer = new Swimlane("buyer");
    taskMgmtDefinition.addSwimlane(buyer);
    seller = new Swimlane("seller");
    taskMgmtDefinition.addSwimlane(seller);
    laundry = new Task("laundry");
    taskMgmtDefinition.addTask(laundry);
    dishes = new Task("dishes");
    taskMgmtDefinition.addTask(dishes);
View Full Code Here

Examples of org.jbpm.taskmgmt.def.Swimlane

      "</process-definition>");
 
    processDefinition = saveAndReload(processDefinition);
 
    TaskMgmtDefinition taskMgmtDefinition = processDefinition.getTaskMgmtDefinition();
    Swimlane initiatorSwimlaneViaStartTask = taskMgmtDefinition.getStartTask().getSwimlane();
    assertNotNull(initiatorSwimlaneViaStartTask);
   
    Swimlane initiatorSwimlaneViaDefinition = taskMgmtDefinition.getSwimlane("initiator");
    assertSame(initiatorSwimlaneViaDefinition, initiatorSwimlaneViaStartTask);
  }
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.