cancel
Showing results for 
Search instead for 
Did you mean: 

Filling the form fields by values from external system.

mutcha
Champ in-the-making
Champ in-the-making
Let's say I have prepared bpmn20.xml file with process, where one of tasks has defined simple form, so In the Eclipse designer in the properties of the task in "Form" section I added few textfields in the form. Then I upload this deployment to Activiti Explorer. Is it possible when the form for the task is shown - to fill these textboxes by values which could come from external system for example Web Service Method? Let's say the process is started with some variables, and then when form is shown these variables are used as parameters for method of some external webservice which returns some value, and this value is put to the text box of the form. Is such scenario possible? If so then How to achieve it ?
12 REPLIES 12

frederikherema1
Star Contributor
Star Contributor
Calling a setter won't fail… but the same expression is used to get the value from the field and setting it. So you can only use it for read-only form-properties. Unless, off course, you have a bean like this:

public String getLookupField() …
public void setLookupField(String str) …

and using expression "myBean.lookupField".

Flow the user guide, we can use task listener to get values from external system.  but if start form needs the value, how to get it?
as i know  task listener don’t  work in the start form.

mutcha
Champ in-the-making
Champ in-the-making
Ok, I managed my task listener to work,
As I said I'm rookie in all these java stuffs, I copied the Listener.jar to wrong directory. Smiley Wink