Within a "Simple scripted validator" workflow function, the static type check reports an error using the "log" instance even if at execution time the "log" instance is available.
Steps to reproduce:
- Create a new transition validator of type "Simple scripted validator"
- Add the following script inside:
- The static type check will mark an error on the log line, showing "the variable [log] is undeclared"
If you save and run the validator, the line
will run correctly and you will see the output inside the log file.