7.1 - Access connectors dynamically on multi-page forms

1
0
-1

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?

1 answer

1
0
-1

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:

  1. Service Task get users last names
  2. Human Task select Person Last Name
  3. Service Task get list of matching people
  4. Human Task select Person First Name
  5. 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

  1. Service task get users last names
  2. Human Task select Person Last Name
  3. JavaScript onchange event for the Select Last Name drop down box
  4. Call Ajax to return First Names
  5. update the Person First Name drop down box
  6. 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

Notifications