Hi, See the code below:-
| <node name="Error Notification1">
| <action class="org.jbpm.mail.CustomMail">
| <subject>Error E5 encountered in jBPM Process in step #{taskName}</subject>
| <text>Hi Administrator,
| The system has encountered error E5 in step #{taskName}.
| Regards
| -jBPM Team</text>
| <to>swati.satpute(a)patni.com</to>
| </action>
| <transition name="" to="Next Step"></transition>
| </node>
In above code I tried #{taskName} expression to get the task name but was unable to get taskname at runtime. Even tried to use the variables used in previous step but didnt succeed.
Anyone got idea how to use variables in such scenarios?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227127#4227127
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227127
how would I add these mockhandlers at runtime?
I've managed to navigate to the actionhandler classname via the processdefinition->node->event->action->delegation, so I could change the name of the class that is triggered to a mock one.
However, I've been using jmock to avoid having to write mock classes in this way. It will be another class to maintain.
In addition will replacing whole actionhandlers with mock code actually prove anything?
I want to mock out the external calls made within an actionhandler, ideally avoiding if (test.mode) {} type code
I was hoping that I'd be able to retrieve the ActionHandler object, call a method to pass it a jmock for a service call, then run the definition
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227121#4227121
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227121
"swatis" wrote : This is how I implemented.
| If Task A is completed by UserA then using action handler setting instance variable :"group" with value of "userA"
| Then When for Task B, used class which implements AssignmentHandler Interface this class will query to see who are the members of group and then elliminated user which is present in "group" instance variable i.e. "userA"
| So now TaskB will be performed by userB or userC by setting only these users in pooled actors list.
This is also a good solution. jBPM task assignment cannot be used off the shelf for the 4-eyes-principle, which is actually widespread i.e. in the financial institutions. But this logic is easy to implement.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227111#4227111
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227111
Hi,
I have this requirement where a task is assigned to a group of users. It is necessary that everyone in the group has to approve the task before it can move to the next step.
However, if any one of the user rejects the task at any time, the flow has to immediately go back to the previous step. Basically, if anyone rejects there is no need to wait for approval from other members of the group.
How can I implement this use case? Your help is greatly appreciated.
Thanks,
Nili Chavan
www.gigagroup.us
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227069#4227069
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227069