KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > processes > holidays > BossAssignementHandler


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  */

5
6 package org.exoplatform.processes.holidays;
7
8 import org.jbpm.delegation.AssignmentHandler;
9 import org.jbpm.delegation.AssignmentContext;
10
11 /**
12  * Created y the eXo platform team
13  * User: Benjamin Mestrallet
14  * Date: 12 mai 2004
15  */

16 public class BossAssignementHandler implements AssignmentHandler{
17
18   public String JavaDoc selectActor(AssignmentContext assignmentContext) {
19     //System.out.println("In selectActor of BossAssignementHandler : ");
20
//System.out.println(" --> Previous actor : " + assignmentContext.getPreviousActorId());
21
if("benj".equals(assignmentContext.getPreviousActorId()) ||
22         "bossOfBenj".equals(assignmentContext.getPreviousActorId())){
23       //System.out.println(" --> Next actor : bossOfBenj");
24
return "bossOfBenj";
25     }
26     return assignmentContext.getPreviousActorId();
27   }
28 }
29
Popular Tags