Invoking Gloop or Event based workflow from Groovy
If you need to invoke Gloop or Event based workflow services in your Groovy code, there's good news for you: it's possible! And to make it even better, the process is made simpler through a wizard that generates the Gloop or Event based workflow-invoking Groovy snippet for you.
Generating Groovy code to invoke a Gloop or Event based workflow service is so simple, it can be done in just a few steps:


- Right click the Gloop or Event based workflow service that you want to invoke from Groovy and then click Generate Invoke Gloop Code from the appearing context menu.
- Choose which syntax you'd like the generated code to be written in - Java or Groovy.
-
You will be given the generated code. From hereon, you have two options:
- Manually create the Groovy file yourself and copy-paste the produced code there; or
- Let the wizard create the
.groovyfile for you.
To have the wizard create it for you, click Next. In the following screen, enter the location and name of the
.groovyfile. -
Click Finish.