get the ID of the current task in the automation scripting executed before a task

I can get the worflow ID but not the task ID. Request : SELECT * FROM RoutingTask WHERE ecm:currentLifeCycleState = 'opened' AND nt:processId = 'myWorflowId'

With this request I can have the task in the webUI nxql search, but with the same request in the “input” script, I have no result.

My aim is to put in a notification mail a link to the task (and not a link to the associated document).

0 votes

0 answers