Getting human tasks fields in a third party application

1
+1
-1

Hi, I'm working on a Liferay portlet to handle my bonitas workflows. so far we've integrated the start process / case handling / task handling quite easily with the bonita's API. Now, we'd like ton let the user fill the human tasks' forms through Liferay but we haven't find the way to do it... Does someone know how we can get the fields of human task through the API ? (we don't want to use a iFrame)

Thanks for any help, Regards

2 answers

1
+1
-1

We want to integrate ours processes in a portail. So we would like that any process could be handle through our app without showing the bonita interface. I've tried

Collection<DataInstance> listeDataInstances = (Collection<DataInstance>) processAPI.getActivityDataInstances(207L, 0, 10);

but it lists even the process datas that aren't shown on the task 207. Is there something like a boolean to tell if the data is used on a specific task ? Thanks

1
+1
-1

Hello, you cannot get form of fields through API. You can only integrate entire Bonita form in an iFrame (check documentation about getting a form by url ). But you can APIs to update process or activity data (for example, methods updateActivityInstanceVariables or updateProcessDataInstance ) Hope this helps, Haris

Comments

Submitted by paul33 on Fri, 05/09/2014 - 15:19

Thanks for the answer (even if another one would have been great :) )! We'll try to find a way around then ...

Submitted by haris.subasic on Fri, 05/09/2014 - 15:23

Using API to update data should be good enough. That way you can build your own forms (why don't you want to integrate Bonita forms?) and manipulate data by API.

Submitted by paul33 on Fri, 05/09/2014 - 15:29

But is it possible to get the data list of process variables used on of specific task ? That's what we've been stuck on...

Submitted by haris.subasic on Fri, 05/09/2014 - 15:33

Every task and/or process variable can be used on the given task. It is up to you to decide what you want to update or use. Not sure to understand what you want to say by "variables used on a specific task", sorry.

Submitted by paul33 on Fri, 05/09/2014 - 15:45

We want our code to be used on a process built by someone else, so we don't know which process variables are used on a specific task. (my sentence wasn't very correct : " is it possible to get the list of process variables used on of specific task" without the "data" - See more at: http://community.bonitasoft.com//answers/getting-human-tasks-fields-thir...

Notifications