If the Groovy code returns
the event is triggered and the associated task is executed.
Otherwise, nothing happens.
If the Groovy code throws an exception, it is considered a coding error and the event is NOT triggered. Thus, exceptions should be properly handled in the Groovy code.
Table 39.10. Variables accessible in Groovy code
An empty container which may be filled with String-String key-value pairs in your Groovy code. It is passed to the task which may use them somehow. For example, the task execute graph passes these parameters to the executed graph.
An empty container which may be filled with String-Object key-value pairs in your Groovy code. It is passed to the task which may use them somehow according to its implementation - e.g. the task execute graph passes it to the executed graph as dictionary entries. Note that it is not serializable, thus if the task is relying on it, it can be processed properly only on the same Cluster node.
|javax.servlet.ServletContext||servletContext||An instance of ServletContext in which CloverDX Server is running.|
An instance of serverFacade usable for calling CloverDX Server core features.
|java.lang.String||sessionToken||A sessionToken needed for calling methods on the serverFacade.|