I am working with Bonita BPM 7.1, starting to build multi-page forms. It looks like the database connector functionality provides what I need in terms of querying an external database. However, I need to access the connector dynamically within the page. For example, first page-> Select person last Name, second page → display list of matching people with selection. So between these steps I need to execute a parameterized query to the database. I can build a connector-in, but it always runs before the form. I don’t see a specific API that is aimed at executing the connector from within the form and getting the output. So is the answer that this should be a set of Human Steps? Or am I missing something?
You have to consider the depth of your process tasks, in this case you are not actually executing a multi-form task in a single process but a multi task with multi forms in a single process.
You should consider for your requirement:
- Service Task get users last names
- Human Task select Person Last Name
- Service Task get list of matching people
- Human Task select Person First Name
- etc.
There is another way of doing this though based on your requirement, get users last name and first name on a single form. Again depends on your development processes and design requirements
- Service task get users last names
- Human Task select Person Last Name
- JavaScript onchange event for the Select Last Name drop down box
- Call Ajax to return First Names
- update the Person First Name drop down box
- Select Person First Name from same screen
I would look at your design first then determine how best you need to apply your requirements and then develop the appropriate solution.
regards