Hi cpob,

Thanks for your response. The Action allows to set up handler?s trap one of the 
below event type. I don't think you can use it for setting up Decision handler. 
I think API for setting up decision handler in "Decision" class is missing or 
may be I am missing something here. Also I have modified my code to create an 
action and associate with Decision but my handler wasn't called.

    Decision amountcheck = new Decision();
    amountcheck.setName("amountcheck");
    processDefinition.addNode(amountcheck);
    
    Delegation delegation = new Delegation();
    delegation.setClassName("com.mycomp.test.AmountDecisionHandler");
    Action action = new Action();
    action.setActionDelegation(delegation);
    amountcheck.setAction(action);

Action events types :

public static final String EVENTTYPE_TRANSITION = "transition";
  public static final String EVENTTYPE_BEFORE_SIGNAL = "before-signal";
  public static final String EVENTTYPE_AFTER_SIGNAL = "after-signal";
  public static final String EVENTTYPE_PROCESS_START = "process-start";
  public static final String EVENTTYPE_PROCESS_END = "process-end";
  public static final String EVENTTYPE_NODE_ENTER = "node-enter";
  public static final String EVENTTYPE_NODE_LEAVE = "node-leave";
  public static final String EVENTTYPE_SUPERSTATE_ENTER = "superstate-enter";
  public static final String EVENTTYPE_SUPERSTATE_LEAVE = "superstate-leave";
  public static final String EVENTTYPE_SUBPROCESS_CREATED = 
"subprocess-created";
  public static final String EVENTTYPE_SUBPROCESS_END = "subprocess-end";
  public static final String EVENTTYPE_TASK_CREATE = "task-create";
  public static final String EVENTTYPE_TASK_ASSIGN = "task-assign";
  public static final String EVENTTYPE_TASK_START = "task-start";
  public static final String EVENTTYPE_TASK_END = "task-end";
  public static final String EVENTTYPE_TIMER = "timer";


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956671#3956671

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956671


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to