Workflow step extension points
Each workflow step can be enhanced with entry processing logic written by the solution developer.
This takes the form of a script, which will either be written in
Script API or Java™ (using the IBM® Product Master Java API). Each script has three
functions (which can be left empty):
- IN
- Runs as soon as an item or category enters the workflow step.
- OUT
- Runs when an item or category exits the workflow step.
- TIMEOUT
- Runs if the item or category exceeds the timeout period for the workflow step.
You create the workflow step script when you create or edit a step.
Note: If
an unhandled step script error occurs, perform the following:
- Write the IN, OUT, and TIMEOUT step scripts to have an outermost
structure of:This line of code will distinguish the difference between errors. However, for the TIMEOUT step script, do not attempt to change the exit value.
catchError(e){ } if (e != null){