My form has an output string given by the setting of a group of radio buttons. I need to decide at runtime if this group of radio buttons should display or not. So I think I should provide an input variable to the form renderer so that it can call services to know if the buttons should display or not.
My question is : how can I pass an input variable to the form renderer, assuming this variable depends on the workflow context?
Are you implementing a form renderer in Vaadin? Or are you writing your own custom renderer? In the latter case I would advise to get a process variable using the RuntimeService and interpret its value.
Yes, this a Vaadin form renderer. It extends org.activiti.explorer.ui.form.AbstractFormPropertyRenderer
I looked at RuntimeService and all getVariable*(…) method require at least a process id, which does not seam to be available within the context of a FormPropertyRenderer configuration:
<code> public Field getPropertyField(FormProperty formProperty) {…} </code>