-
1. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
swiderski.maciej Nov 14, 2012 3:53 AM (in response to thomas.setiabudi)1 of 1 people found this helpfulThomas, I am afraid that without bit of implementation it won't be doable. I mean that you would need to extend existing console server functionality to add that.
Why using task variables is not a good way of achieving what you described? If it's same value for all tasks for given user task node then simply define it as constant value in task definition in data inputs, if it is dynamic use variable.
HTH
-
2. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
thomas.setiabudi Nov 25, 2012 9:17 PM (in response to swiderski.maciej)Hi,
Thanks Maciej, will give it a try..
Regards,
Thomas Setiabudi
-
3. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
thomas.setiabudi Nov 25, 2012 9:42 PM (in response to swiderski.maciej)Hi Maciej,
After I define my variable in data input for the task, how do I retrieve its value using TaskClient?
Regards,
Thomas Setiabudi
-
4. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
swiderski.maciej Nov 26, 2012 1:36 AM (in response to thomas.setiabudi)Thomas, first you need to get task and from it you get contentId of your inputs using task.getTaskData().getDocumentContentId(). Once you have it you use this id to get content using taskClinet.getContent() method. Note that you would need to use marshaller to get the object out if it.
HTH
-
5. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
thomas.setiabudi Nov 26, 2012 5:58 AM (in response to swiderski.maciej)Hi Maciej,
the code looks like this
BlockingGetContentResponseHandler getContentResponseHandler = new BlockingGetContentResponseHandler(); taskClient.getContent(task.getTaskData().getDocumentContentId(), getContentResponseHandler); Content content = getContentResponseHandler.getContent();
inside content, I got only content.getContent() that will return byte[]
And the byte[] should be marshalled to? XML file?
Regards,
Thomas Setiabudi
-
6. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
atomic_mass May 7, 2013 9:47 AM (in response to thomas.setiabudi)Hello,
I'm confused about what goes in the {idRef} parameter. Could you perhaps provice some direction?
Thanks,
Sean
-
7. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
melc May 8, 2013 8:52 AM (in response to thomas.setiabudi)Hello,
Get object with data from content,
byte[] byteContent = content.getContent(); byteArrayInputStream = new ByteArrayInputStream(byteContent); inputStream = new ObjectInputStream(byteArrayInputStream); contentObject = inputStream.readObject();
-
8. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
melc May 8, 2013 9:03 AM (in response to atomic_mass)hi, just noticed the dates of this thread
so the {idref} referes to the username of the user whose tasks you need to retrieve.
-
9. Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
atomic_mass May 8, 2013 9:15 AM (in response to melc)Thanks for that - should have been obvious :-)
I will try it out once I figure out the authentication for the service.