connector in Connectors In panel did not run

Hi!
I developed a process on bonita 7.7.4 comunity edition. In order to display instantiation form, i need data from AWS . So i add groovy script connector in Connectors In panel in pool level. But when i ran process, i got instantiation form without groovy script connector ran first ( i had log printout in script). When i clicked submit button in instantiation form, i can see groovy script connector ran this time in log file.

My question is , since i added in connector in Connectors In panel or in Connectors Out panel, why groovy script connector did not run before instantiation form displayed?

Thanks!

Hello,

The process instance is created only after the instantiation form is submitted, not before. This form is supposed to collect information that is necessary to start a new instance. It is then normal that the connector IN is triggered after the form is displayed (and submitted).

Two options:

  • Use a human task with a form right at the beginning of the process instead of a process instantiation form and continue to use a connector IN
  • Use a Bonita REST API Extension or AWS REST API to directly access AWS information and display it on the instantiation form

HIH,