External Executor actor puts out an extra token when nonzero return
If you have a external execution actor with PN director, and the external execution actor calls a script, say...
... then the output port will produce "hello" and the token count is 1. But if the exit code is non-zero, then the output port produces an additional (empty) token and the token count is 2. This results in downstream dataflow token matching havoc!
It seems the spurious token is only produced on the output port, the exitCode port is not affected.
This problem does not occur with SDF Director.