[jboss-dev-forums] [jBPM Development] - Re: Obtain taskInstance variables in mail template
Francesco Stampacchia
do-not-reply at jboss.com
Thu Apr 5 10:36:55 EDT 2012
Francesco Stampacchia [https://community.jboss.org/people/francesco.stampacchia] created the discussion
"Re: Obtain taskInstance variables in mail template"
To view the discussion, visit: https://community.jboss.org/message/728529#728529
--------------------------------------------------------------
Hello!
Well, using a mail template I'm naturally relying on the *notify* parameter specified in the task node xml definition, like this:
|
| <task-node name="Draft"> |
|
|
|
| <task name="program_defined" swimlane="PM" description="DRAFT" *notify="true"*></task> |
|
|
| <transition to="Active" name="validate"></transition> |
|
| </task-node> |
|
As such, I'm using an xml template in which I can invoke my *processInstance* properties and variables.
I.e. with #{taskInstance.*actorId*} to obtain *actorId* in my mail template.
By the way, my issue was solved as I thought. Infact, if you carry a set of variables with your *taskInstance*, you can retrieve them by calling them in this way:
#{taskInstance.variables.*variable_name*}
where *variable_name* is the *key* name used to store your variable in the *taskInstance*.
Hope this can be useful to someone else!
Cheers!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728529#728529]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120405/b1ee4df1/attachment.html
More information about the jboss-dev-forums
mailing list