cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing process variables from custom FormProperty

e0625178
Champ in-the-making
Champ in-the-making
Hello,

I'm trying to implement a custom form property which uses a vaadin ListSelection for selecting an item.
I have successfully implemented the control itself, and it is working really well so far.
However, now I would like to populate the ListSelection control with values that I have stored in a process variable.

The process should work as follows:
- Process starts
- ServiceTask loads a list of domain objects, stores them in a process variable
- UserTask shows a list of loaded domain objects, allows user to select one

So now i need to either
a) pass my process variable along to the form property somehow or
b) access the process' variables via code directly from my custom ListFormPropertyRenderer

Is there any way I can accomplish this?

Thanks for the help!

Best regards, Uwe
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Sure, the UserFormType/UserFormPropertyRenderer does a similar thing.
Simply do a call to the Activiti engine from within the renderer.