Hi! Usually-business-but-tech-curious user here, please be kind.
I need to calculate how long it takes from the start of Task1 to the end of Task2.
I got stuck in the first step which is using task execution listener with that setup:
and this script
execution.setVariable("dataSolicitacaoExame",now()) to register when the first task starts.
This is the error I get:
Cannot instantiate process definition SimuladorTestesProcess:6:52202cec-f8b2-11ec-9f19-e4a8dff3b940: Unable to evaluate script while executing activity 'InsereVariavelTask' in the process definition with id 'SimuladorTestesProcess:6:52202cec-f8b2-11ec-9f19-e4a8dff3b940':org.graalvm.polyglot.PolyglotException: ReferenceError: now is not defined [ start-instance-error ]
Tips on how to overcome this first step that went wrong already?