Discussion:
[jboss-user] [jBPM] - Where is the built-in "task" parameter defined?
Andy McC
2013-05-03 16:30:30 UTC
Permalink
Andy McC [https://community.jboss.org/people/andymcc] created the discussion

"Where is the built-in "task" parameter defined?"

To view the discussion, visit: https://community.jboss.org/message/811472#811472

--------------------------------------------------------------
In the task forms that come with the Evaluation example there is the following line

*${task.descriptions[0].text}*

According to the documentation ( http://docs.jboss.org/jbpm/v5.4/userguide/ch.console.html#d0e4922 http://docs.jboss.org/jbpm/v5.4/userguide/ch.console.html#d0e4922) this is a built-in parameter available to all User tasks.

The above link says that more information can be found at http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html#d0e4970 http://docs.jboss.org/jbpm/v5.4/userguide/ch.human-tasks.html#d0e4970 but I can't find anything that defines the structure of the "task" parameter and nothing that takes the name "descriptions".

However, from experimenation it appears that ${task.descriptions[0].text} points to the "Comment" field of the task definition.

Can anyone point me at some documentation on this feature?

Thanks!

Andy McC
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/811472#811472]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-05-10 05:35:41 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Where is the built-in "task" parameter defined?"

To view the discussion, visit: https://community.jboss.org/message/817100#817100

--------------------------------------------------------------
In general this is the task instance that you are about to work on. So you should have access to all its data. Look at the Task class and you'll notice the relationship. Just so you know it uses expression language to access data instead of getters so that's you it's: task.descriptions instead of task.getDescriptions.

Then when you look at what https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/process/workitem/wsht/AbstractHTWorkItemHandler.java#L87 HT work item handler does you'll notice that it is responsible for filling in such information - put comment into descriptions field.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/817100#817100]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Andy McC
2013-05-10 07:37:35 UTC
Permalink
Andy McC [https://community.jboss.org/people/andymcc] created the discussion

"Re: Where is the built-in "task" parameter defined?"

To view the discussion, visit: https://community.jboss.org/message/817113#817113

--------------------------------------------------------------
Thanks Maciej - that's very useful.

This (an the way in which "Content" seems to override other task input mappings) is an area where the documentation isn't very clear. Should I submit a Jira suggesting that some clarification be added, or is this an area that is about the change in jBPM6?

Thanks again

Andy McC
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/817113#817113]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-05-13 05:38:10 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Where is the built-in "task" parameter defined?"

To view the discussion, visit: https://community.jboss.org/message/817309#817309

--------------------------------------------------------------
yes, please do create jira for it. Soon documentation will be enhanced so the more input on areas to focus the better.

Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/817309#817309]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...