AnsweredAssumed Answered

Retrieve taskId from custom control share tier

Question asked by evoci on Mar 27, 2015
Latest reply on Mar 30, 2015 by tonyrivet
I am trying to integrate a custom control within my custom workflow derived from bpm:workflowTask, in Alfresco 4.2.
My custom control invokes a webscript in the repo tier, and I need to pass the taskId for which the control instance is running to that webscript.
My goal is to retrieve task variables from the webscript by using
var taskId = args["taskId"];
var task = workflow.getTaskById(taskId);

I don't know how to retrieve the taskId in my control.inc.ftl; any hint appreciated.

Outcomes