cancel
Showing results for 
Search instead for 
Did you mean: 

Eclipse plugin form properties

ritz57
Champ in-the-making
Champ in-the-making
Hi
I am currently creating a BPMN diagram using Eclipse plugin. So on a task I can add form properties. When editing the property there are multiple field like id name type etc. There is also a field named Default and one named Variable. How can I retrieve the values of these fields using the API.
Currently I do something  like

TaskFormData formData = formService.getTaskFormData(taskId);
List<FormProperty> list = formData.getFormProperties();
for (FormProperty p : list) {

}

I thought I could get the value by doing p.getVariable() or p.getType().getInformation("variable");
but looking in the code these are not available.
Any idea why ? is the Eclipse plugin not base on the same code as the FormService ?
Regards

JP
1 REPLY 1

yvoswillens
Champ in-the-making
Champ in-the-making
Hi

Are you trying to get the form definition? Or are you trying to get the runtime values?
If you want the form definition you need the bpmn model which can be accessed through the repository service.

The runtime values of for example the variables defined in a form are accessible through the form service and should be available as value objects.

Regards

Yvo