AnsweredAssumed Answered

Need to access processVariables in convertFormValueToModelValue()

Question asked by stephan.bauer on May 21, 2014
Latest reply on May 27, 2014 by jbarrez
Hi,

I have been searching the forum now very deeply, but I couldn't find any topic that fits for my problem:

I write my own custom FormType (extends AbstractFormType). I wanted to do it analog to the more complex "ProcessDefinitionFormType" example explained in http://www.jorambarrez.be/blog/2013/03/13/creating-a-new-form-property-in-activiti/

The difference to the example above is, that my Modelobjects are stored in a List-Attribute of a Bean class, which itself is a processVariable. I retrieve that Bean in a taskListener when a new processinstance starts and put it also into the processVariables from there.

My problem now is, that the convertFormValueToModelValue()-Method does not know, which ProcessInstance is currently involved. It only knows the "propertyValue"- argument. Is there a way to get the missing link?

The same problem exists for my implementation of the AbstractFormPropertyRenderer. In order to populate the ComboBox, I must iterate over the list in the Bean.

Many thanks in advance,
Stephan

Outcomes