Filling the form fields by values from external system.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2012 09:37 AM
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 ?
Labels:
- Labels:
-
Archive
12 REPLIES 12
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2012 05:57 AM
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".
public String getLookupField() …
public void setLookupField(String str) …
and using expression "myBean.lookupField".
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 10:35 PM
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.
as i know task listener don’t work in the start form.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2012 06:11 AM
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.
As I said I'm rookie in all these java stuffs, I copied the Listener.jar to wrong directory.

