[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread cpob
You have to add the Handler to the decision node for it to work. Look at the API for Decision. There's a setAction method. Create a new action and set it to the decision object using that method. You'll have to investigate what creating a new action involves (you have to create a new Action

[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread krsenthil
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

[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread cpob
That is how you define actions... almost. Actions do not always have to be with events. An action can be defined inside a Node (or Decision) as well. You're on the right path, but don't be too quick to give up. You gotta make sure all the elements are set up properly Try doing a

[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread krsenthil
Thanks for your help. I am copying the implementation of execute method code in Decision class. This code checks the private decisionDelegation list for handlers if there is one defined then it calls the handler. If you notice it doesn't look for decision handlers in action list (If that is

[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread cpob
You're right... It looks like decision doesn't allow you to programmatically create the decision handler. My suggestion is to build jBPM yourself, and add in a method in Decision that allows you to set the decisionDelegation. Building jBPM yourself is easy, I'm doing it currently for some

[JBoss-user] [JBoss jBPM] - Re: re : Decision Hanlder

2006-07-10 Thread krsenthil
Thanks! In order to be complaint with all other Node implementations I think the Decision class must also call the actions. So that way I don't have to add new API to set decisionDelegation. Please let me know your thoughts. BTW I have not committed code to Jboss before so any pointers to the