Fill usertask with execution variables
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2016 06:24 AM
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
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
Labels:
- Labels:
-
Archive
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2016 02:13 AM
Yes, you should be able to do it. Instead of filling them from the REST call, fill it from the process instance variable.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2016 04:18 AM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2016 04:31 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2016 04:56 AM
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..
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..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2016 04:46 AM
@proesmans: In enterprise, form stencils are the way to go and are way more powerful than form properties in Explorer.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2016 07:35 AM
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?
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?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2016 06:32 AM
It is possible, but you'd need to add a custom REST endpoint that your custom form widget calls.
