two more questions
question 1:
when the process runs to a certain point , I use below coding to show the status of the current process, code as follow,
for(NodeInstance ni : ((WorkflowProcessInstance)pi).getNodeInstances()){
HumanTaskNodeInstance ntn = (HumanTaskNodeInstance)ni;
String name = ni.getNode().getName();
String actorId = ntn.getWorkItem().getParameter("ActorId").toString();
System.out.println("node:"+name+" actorid:" );
}
According to the above coding, sometime the feedback of the actorID will be org.jbpm.task.utils.MarshalledContentWrapper type, sometime it will be String type data.
As below attachment, when the process runs to task1, the feedback of actorID will be MarshalledContentWrapper, but when the process runs to task2, the feedback of actorID will be String type data, can you tell me reason why it happens?
question2:
If I want to check how many human task nodes did the process stay, and who has edited the owner of these human task nodes, how can I achieve this checking?