Attaching a script task in a process
Attaching ScriptCode Handler in the process
For the process to be able to invoke the handler, you must set in the process definition ServiceTask to:
section Implementation: Topic = eximeeScriptCodeTask

section Extension properties: you should add a variable named script with the script name as the value that we want to invoke:

In the Inputs section we have the possibility to define arguments for the handler, for the example script:

In the example above we added to the handler the variable testVariable with the value 10.
Keep in mind that in the handler script we have access to all global process variables via the getVariable() and getAllVariables() methods.
Cache handling in process-handler-executor
process-handler-executor is an application that is part of the Eximee platform. It is responsible for executing script tasks. This application has a cache that reduces the number of requests for the content of script task artifacts, resulting in better performance.
The cache is configurable via the PROCESS_HANDLER_SCRIPT_CODE_CACHE_TTL parameter. Its value should be set depending on how often artifacts are updated in a given environment. For development environments where artifacts are frequently updated, a low value is recommended, for example '1s'; for production environments you can use a much higher value, for example '10m'.
The cache can also be cleared on demand by making the request:
Last updated
Was this helpful?
