Custom script function testing
Once you are comfortable with scripting basics, for simple functions it may be sufficient to simply execute the process, passing a document through the map and then inspecting the document data afterward.
For more complex functions, you can use an external console to test the script and then copy and paste it back into the function. For more information see Script development and testing.
If you are using Groovy, within the script you can access process execution information including process properties, the current execution ID, and a handle to the process logger.
-
Process execution information can be accessed through the Scripting API.
-
Refer to Process properties access with scripting for how to set and retrieve process properties.
-
The process logger allows you to write your own messages to the process log and can be very useful for development and troubleshooting. For more information, refer to Script development and testing.
-
Document properties (standard and dynamic) are not accessible through scripting in a map function. Use a standard Get Document Property or Set Document Property function step instead.