KickJava   Java API By Example, From Geeks To Geeks.

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


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.decision.ExpressionDecisionHandler;
9 import org.jbpm.delegation.ExecutionContext;
10
11 /**
12  * Created y the eXo platform team
13  * User: Benjamin Mestrallet
14  * Date: 12 mai 2004
15  */

16 public class MockDecisionHandler extends ExpressionDecisionHandler {
17
18   public String JavaDoc decide(ExecutionContext executionContext) {
19     System.out.println( "Start Date : " + executionContext.getVariable("start.date"));
20     System.out.println("decide in MockDecisionHandler : " + executionContext.getNode().getName());
21     return "enough holidays";
22   }
23
24 }
25
Popular Tags