cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide informations to a FormPropertyRenderer

martin_p
Champ in-the-making
Champ in-the-making
Hi,

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?

I already tried using expression as explained here (http://forums.activiti.org/content/cannot-set-value-non-lvalue-expression) but I got of problems and think I am not on the good track!

Thanks in advance,
Martin

4 REPLIES 4

trademak
Star Contributor
Star Contributor
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.

Best regards,

martin_p
Champ in-the-making
Champ in-the-making
Hi,

Thanks for your answer!

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>

Am I wrong?

Best regards,
Martin

jbarrez
Star Contributor
Star Contributor
Afaics, there is indeed no way to get the current execution or process instance.
Imho, this is missing feature which must be added to make it usable.

martin_p
Champ in-the-making
Champ in-the-making
OK, thank you for clarifying this point.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.