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

1 answers

653 views

ANSWER

Can you try this? SELECT * FROM TaskDoc WHERE ecm:currentLifeCycleState = 'opened' AND nt:processId = 'myWorflowId'
09/21/2021



I tried it… Same result : no result.

0 votes