public void testFirstTermVariableUser() {
   expressionAssignmentHandler.expression = "variable(uservariable)";
   User john = identitySession.getUserByName("john");
   processInstance.getContextInstance().setVariable("uservariable", john);
   expressionAssignmentHandler.assign(assignable, executionContext);
   assertEquals("john", 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());
 }
 public void testFirstTermVariableString() {
   expressionAssignmentHandler.expression = "variable(actoridstringvariable)";
   processInstance.getContextInstance().setVariable("actoridstringvariable", "john");
   expressionAssignmentHandler.assign(assignable, executionContext);
   assertEquals("john", assignable.getActorId());
 }
 public void testFirstTermPrevious() {
   expressionAssignmentHandler.expression = "previous";
   expressionAssignmentHandler.assign(assignable, executionContext);
   assertEquals("bill", assignable.getActorId());
 }
 public void testNextTermMember() {
   expressionAssignmentHandler.expression = "group(hellsangels) --> member(leaderofthegang)";
   expressionAssignmentHandler.assign(assignable, executionContext);
   assertEquals("john", assignable.getActorId());
 }
 public void testFirstTermUser() {
   expressionAssignmentHandler.expression = "user(john)";
   expressionAssignmentHandler.assign(assignable, executionContext);
   assertEquals("john", assignable.getActorId());
 }