2 Replies Latest reply on May 13, 2014 9:53 AM by Bartek Rybak

    How to get Task & TaskData instances from inside of UserTask's OnExit script?

    Bartek Rybak Newbie

      Hi everyone,

      Is it possible to get reference to current Task instance (and TaskData instance) from inside of OnEntry / OnExit java script of the UserTask?

      I know how to get taskId ( ((WorkItemNodeInstance)kcontext.getNodeInstance()).getWorkItemId() ), but I do not know, how to obtain TaskService from inside process UserTask OnExit entry, to use getTaskByWorkItemId method.