-
1. Re: How to get Input Parameter Mapping variable via TaskService in jBPM 6
swiderski.maciej Jan 3, 2014 9:15 AM (in response to kylin)In general, there should be getTaskContent method on TaskService that should give you exactly what you need. But for the completeness here you can find code that does that.
HTH
-
2. Re: Re: How to get Input Parameter Mapping variable via TaskService in jBPM 6
kylin Jan 4, 2014 1:13 AM (in response to swiderski.maciej)Hi Maciej
Thanks for your quick replying.
I think I am not depict my question clearly, I can get Content via TaskService, it's like below code:
Task userTask = taskService.getTaskById(task.getId()); TaskData taskData = userTask.getTaskData(); Content content = taskService.getContentById(taskData.getDocumentContentId());
But I don't know how to get input parameter from Content.
As attached parameters.zip is a maven based reproduce project(you can import to eclipse to have a look), here is quick link in github, we have 3 Input Parameter Mapping variables: input_name, input_age, input_content, now I want to get 3 variables from content, Can you give me more advice?
Thanks and Regards
Kylin
-
parameters.zip 17.7 KB
-
-
3. Re: How to get Input Parameter Mapping variable via TaskService in jBPM 6
kylin Jan 7, 2014 1:18 AM (in response to swiderski.maciej)Hi Maciej
I have appended more details of my question, can you re-answer my quesion?
Thank you very much
Kylin
@Maciej Swiderski
-
4. Re: How to get Input Parameter Mapping variable via TaskService in jBPM 6
swiderski.maciej Jan 7, 2014 2:28 AM (in response to kylin)Kylin,
you need to use the ContentMarshallerHelper to unmarshall the content bytes into a map. Here is the actual line that does that.
HTH
-
5. Re: How to get Input Parameter Mapping variable via TaskService in jBPM 6
kvijai Jan 7, 2015 2:48 AM (in response to kylin)Hi Kylin,
I am too trying to get the input task parameters using Java remote API in JBPM 6.1. I hope you have succeeded to get it, please help me how to get the input parameters?
Regards,
Vijai