cancel
Showing results for 
Search instead for 
Did you mean: 

Fill usertask with execution variables

robinho
Champ in-the-making
Champ in-the-making
Hi

I can fill values in a listbox (enter them manually or through REST endpoint) from the referenced form in an user task.
Is it possible to create a user task and fill up a listbox with values destined from an execution variable? (java class)

Thank you
7 REPLIES 7

hari
Star Contributor
Star Contributor
Yes, you should be able to do it. Instead of filling them from the REST call, fill it from the process instance variable.

robinho
Champ in-the-making
Champ in-the-making
In the form properties of a user task, I can use my process instance variables.
The problem is that collections are not supported? (only string,boolean,enum,long,date)

I read http://www.jorambarrez.be/blog/2013/03/13/creating-a-new-form-property-in-activiti/
but i'm wondering if this also works in alfresco activiti enterprise… I don't think so

Is it possible? thanks

hari
Star Contributor
Star Contributor
Hi,

My reply might not be exactly what you were looking for since you were looking at solution for activiti enterprise and activiti explorer. But until someone else gets to this may be this might help. 

I am not sure if you can achieve it in activiti-explorer but otherwise it is very much possible.
While starting a BPM, you can pass the collection object also along with the other process instance variables. And once you have it, you can easily add them to a listbox and display them.

robinho
Champ in-the-making
Champ in-the-making
Your answer is really not clear..

I know it is possible in actviti-explorer:  http://www.jorambarrez.be/blog/2013/03/13/creating-a-new-form-property-in-activiti/
I'm wondering if it is also supported in enterprise..

jbarrez
Star Contributor
Star Contributor
@proesmans: In enterprise, form stencils are the way to go and are way more powerful than form properties in Explorer.

robinho
Champ in-the-making
Champ in-the-making
Stencils will indeed be the solution to create custom forms with variables from my java class
The only problem is that I cannot create a listbox with a backed java arraylist (or hashmap..).
As far as I can see this is not yet possible?

jbarrez
Star Contributor
Star Contributor
It is possible, but you'd need to add a custom REST endpoint that your custom form widget calls.