Java class to handle decision and sending mail
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2009 12:16 AM
Hi,
How can I use java classes to handle complex decisions, passing process level variables to java classes and send mail in jBPM workflows?
Thanks
Khinendra
How can I use java classes to handle complex decisions, passing process level variables to java classes and send mail in jBPM workflows?
Thanks
Khinendra
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2009 02:14 AM
I guess you´re looking for something like following, right?
Some example Java-Code comes here to getting started with more complex evaluations regarding the current workflow-state:
The returned String belongs to the transition name which will be taken.
<decision name="isokay"> <handler class="com.company.ComplexDecisionHandler"/> <transition name="reject" to="rejected" /> <transition name="approve" to="approve"></decision>
Some example Java-Code comes here to getting started with more complex evaluations regarding the current workflow-state:
public class ComplexDecisionHandler implements org.jbpm.graph.node.DecisionHandler { public String decide(ExecutionContext executionContext) throws Exception { //conditions …. return "approve"; }}
The returned String belongs to the transition name which will be taken.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2009 12:31 AM
Thanks
Exactly same.
But one thing more, how to pass process level variables to java classes.
Example is passing return value to process.
Regards,
Khinendra.
Exactly same.
But one thing more, how to pass process level variables to java classes.
Example is passing return value to process.
Regards,
Khinendra.
