4 Replies Latest reply on May 16, 2014 4:06 AM by ruijiang ma

    how to get the actualOwner of a task by script in java code

    ruijiang ma Newbie

      i want to get the information about who is executing the task know.

      as far as i know,that we kan use this sentence in script task or On Entry Action:

      NodeInstance node = kcontext.getNodeInstance();



      ,which  kcontext is org.kie.api.runtime.process.ProcessContext and initialized by system automaticly.



      i cann't get taskSummery or task from NodeInstance,and therefor cannot get the actualOwner of this task.



      my final propose is that get the creator,actualOwer,and getCreatedOn() which provided by TaskSummary class.



      how can i do this.



      thank all of you .