[jboss-user] [jBPM] - How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
Thomas Setiabudi
do-not-reply at jboss.com
Tue Nov 13 02:00:03 EST 2012
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?"
To view the discussion, visit: https://community.jboss.org/message/776140#776140
--------------------------------------------------------------
Hi,
In our environment, we use JBPM5.3 as a service via JBPM-Console REST service.
when we call this REST:
/gwt-console-server/rs/tasks/{idRef}
The resulting JSON is something like this:
{
tasks:
[
{
id:6,
processInstanceId:11,
processId:com.sample.evaluation,
name:Performance Evaluation,
assignee:thomas,
isBlocking:true,
isSignalling:false,
outcomes:[],
currentState:ASSIGNED,
participantUsers:[],
participantGroups:[],
url:http://localhost:8080/gwt-console-server/rs/form/task/6/render,
priority:0
},
{
id:7,
processInstanceId:11,
processId:com.sample.evaluation,
name:Performance Evaluation,
assignee:thomas,
isBlocking:true,
isSignalling:false,
outcomes:[],
currentState:ASSIGNED,
participantUsers:[],
participantGroups:[],
url:http://localhost:8080/gwt-console-server/rs/form/task/6/render,
priority:0
}
]
}
The outcomes field is always empty.. "outcomes":[]
is there any way to fill value to this field?
We have a requirement to add a custom field for every human task, and retrieve its value when we open personal task list.
We thought that maybe we can fill in the custom field in the JSON "outcomes" field.
is it possible? Or is there any other way? maybe like create a custom WorkItemHandler that extends the Human Task?
Any help is appreciated.
Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/776140#776140]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121113/7efbb339/attachment-0001.html
More information about the jboss-user
mailing list