Execute External Groovy Script Connector

Created on Bonita BPM version : 6.3.3

Objectives: Execute an external groovy script

You can edit the script without recompiling neither redeploying the process on the server

  • Use as a form widget connector, it allows you to edit the script and refresh the screen to see the result
  • Use as a Form transiant data connector, it allows you to edit the script and refresh the screen to see the result
  • Use as an activity connector, it allows you to edit the script, restart a new process instance and see the changes

Connector Input Parameter :

  • filePath : the full file path to the script
  • inputMap : a java.util.Map variable to pass data to the script

Connector Output :

  •   result : Java Object
    

Installation and usage:

  • copy the script file in your hard-drive
  • In the process, change in the connector the “file path” input parameter
  • Execute the process
  • Go to step 1 form : see the text message
  • Change the script by updating the message for example, and save the script
  • Refresh your navigator
  • See the result : the message has change, meaning that the new script has been executed without recompiling the process

Enjoy
Repository URL : https://github.com/fkrebs/connector-externalGroovyScript.git