Examples of SwimlaneInstance


Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

      {
        value = contextInstance.getTransientVariable(name);
      }
      else if ((taskMgmtInstance != null) && (taskMgmtInstance.getSwimlaneInstances() != null) && (taskMgmtInstance.getSwimlaneInstances().containsKey(name)))
      {
        SwimlaneInstance swimlaneInstance = taskMgmtInstance.getSwimlaneInstance(name);
        value = (swimlaneInstance != null ? swimlaneInstance.getActorId() : null);

      }
      else if (JbpmConfiguration.Configs.hasObject(name))
      {
        value = JbpmConfiguration.Configs.getObject(name);
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

  SwimlaneInstance swimlaneInstance = null;
 
  public void setUp() throws Exception {
    super.setUp();
   
    swimlaneInstance = new SwimlaneInstance();
    session.save(swimlaneInstance);
  }
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

    }
    return user;
  }

  protected String getSwimlaneActorId(String swimlaneName) {
    SwimlaneInstance swimlaneInstance = executionContext
          .getTaskMgmtInstance()
          .getSwimlaneInstance(swimlaneName);
    if (swimlaneInstance==null) {
      throw new ExpressionAssignmentException("no swimlane instance '"+swimlaneName+"'");
    }
    return swimlaneInstance.getActorId();
  }
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

    assertEquals("bill", assignable.getActorId());
  }

  public void testFirstTermSwimlane() {
    expressionAssignmentHandler.expression = "swimlane(boss)";
    SwimlaneInstance swimlaneInstance = new SwimlaneInstance(new Swimlane("boss"));
    swimlaneInstance.setActorId("john");
    processInstance.getTaskMgmtInstance().addSwimlaneInstance(swimlaneInstance);
    expressionAssignmentHandler.assign(assignable, executionContext);
    assertEquals("john", assignable.getActorId());
  }
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

    TaskMgmtDefinition taskMgmtDefinition = executionContext.getProcessDefinition().getTaskMgmtDefinition();
    TaskMgmtInstance taskMgmtInstance = executionContext.getTaskMgmtInstance();
    ContextInstance contextInstance = executionContext.getContextInstance();
   
    Swimlane shipperSwimlane = taskMgmtDefinition.getSwimlane("shipper");
    SwimlaneInstance shipperSwimlaneInstance = taskMgmtInstance.getInitializedSwimlaneInstance(executionContext, shipperSwimlane);

    String actorId = shipperSwimlaneInstance.getActorId();
   
    String displayMsg = replace(msg, "${"+swimlaneName+"}", actorId);
    displayMsg = replace(displayMsg, "${item}", (String)contextInstance.getVariable("item"));
    displayMsg = replace(displayMsg, "${address}", (String)contextInstance.getVariable("address"));
   
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

    }
    return user;
  }

  protected String getSwimlaneActorId(String swimlaneName) {
    SwimlaneInstance swimlaneInstance = executionContext
          .getTaskMgmtInstance()
          .getSwimlaneInstance(swimlaneName);
    if (swimlaneInstance==null) {
      throw new ExpressionAssignmentException("no swimlane instance '"+swimlaneName+"'");
    }
    return swimlaneInstance.getActorId();
  }
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

  /* (non-Javadoc)
   * @see org.jbpm.taskmgmt.def.AssignmentHandler#assign(org.jbpm.taskmgmt.exe.Assignable, org.jbpm.graph.exe.ExecutionContext)
   */
  public void assign(Assignable ass, ExecutionContext arg1) throws Exception {
    SwimlaneInstance swimlaneInstance = (SwimlaneInstance)ass;
    String name = swimlaneInstance.getName();
    ass.setActorId(name);
  }
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

       
      } else if ( (taskMgmtInstance!=null)
                && (taskMgmtInstance.getSwimlaneInstances()!=null)
                && (taskMgmtInstance.getSwimlaneInstances().containsKey(name))
            ) {
        SwimlaneInstance swimlaneInstance = taskMgmtInstance.getSwimlaneInstance(name);
        value = (swimlaneInstance!=null ? swimlaneInstance.getActorId() : null);
       
      } else if ( (contextInstance!=null)
                  && (contextInstance.hasTransientVariable(name))
                ) {
        value = contextInstance.getTransientVariable(name);
View Full Code Here

Examples of org.jbpm.taskmgmt.exe.SwimlaneInstance

    }
    return user;
  }

  protected String getSwimlaneActorId(String swimlaneName) {
    SwimlaneInstance swimlaneInstance = executionContext
          .getTaskMgmtInstance()
          .getSwimlaneInstance(swimlaneName);
    if (swimlaneInstance==null) {
      throw new ExpressionAssignmentException("no swimlane instance '"+swimlaneName+"'");
    }
    return swimlaneInstance.getActorId();
  }
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.