-
1. Re: Mail node template
tejjbpm Jul 21, 2009 8:37 AM (in response to tejjbpm)Any suggestions? ...The template is not called when i click on the transitiion submit..
Here is my code sample:<start-state name="enter request details"> <task name="enter request details" swimlane="initiator" blocking="true"> <description> Please enter the full details for Services Request. </description> </task> <transition to="psr rejected 8" name="cancel"></transition> <transition to="notify-line-manager" name="submit"><action ref-name="notification"></action> </transition> </start-state> <mail name="notification" template="sm-line-manager-review"></mail>
-
2. Re: Mail node template
kukeltje Jul 21, 2009 11:42 AM (in response to tejjbpm)The way you use it, it is a node, not an action, so using a ref does not work here.
-
3. Re: Mail node template
tejjbpm Jul 21, 2009 11:44 AM (in response to tejjbpm)Thanks for your reply...what should I use if it is a node? Could you please give some pointers?
-
4. Re: Mail node template
kukeltje Jul 21, 2009 11:54 AM (in response to tejjbpm)uhmm... transition TO that node?
-
5. Re: Mail node template
tejjbpm Jul 21, 2009 11:57 AM (in response to tejjbpm)I want to send an email when it transitions to the node..
In other words, I will need to send an email inside the task node.
Start task
Task2
Either I need to send an email when the user clicks on submit in the start task or when it transitions to task2 ( something like <mail etc ..etc..>
Any ideas? -
6. Re: Mail node template
tejjbpm Jul 21, 2009 11:59 AM (in response to tejjbpm)Also just to add..it does not complain about usign the action tag..it seems to be valid but it is just ignored...as if nothing is written there..:(
-
7. Re: Mail node template
swatis Jul 23, 2009 4:11 AM (in response to tejjbpm)Hmm... I tried example given by you and was able to successfully execute the same. What error you are getting?
-
8. Re: Mail node template
tejjbpm Jul 23, 2009 4:16 AM (in response to tejjbpm)thanks swatis..i used a mail action instead of ref-name and it worked fine..
The previously it was not sending the email and there was no error log as well.. It was a bit strange as i thought i am using the syntax correctly..
sorted now..thanks for your reply -
9. Re: Mail node template
kukeltje Jul 23, 2009 5:27 AM (in response to tejjbpm)no, your syntax was *not* correct. You referenced a node instead of an action. That does *not* work. There might have been a warning when *deploying* this process that a reference to an action could not be found but I'm not sure.
Changing it to an action makes it work since that is the correct syntax. Or, like I said, use transition *to* a mail node to make it work. Functionality wise it makes no difference -
10. Re: Mail node template
swatis Jul 23, 2009 5:58 AM (in response to tejjbpm)in example you used "mail name="notification" template="blah-blah" right. And in action tag you used "notification" as ref-name
"Mail" is "action" nto "node".
So its perfectly all right to use the same.
I got mail with same configuration.