Using the NodeIntstance API, I was able to get the Message Event Node Name as follows. What I really want is getting its "EventType" property field. The NodeInstance does not have a method getting the EventType. Is there any way to get the EventType?
ProcessInstance subPi = ksession.getProcessInstance(instanceId);
WorkflowProcessInstance wpi = (WorkflowProcessInstance)subPi;
List<String> result = ArrayList<String>();
Collection<NodeInstance> myNodeInstances = wpi.getNodeInstances();
for (NodeInstance ni : myNodeInstances) {
System.out.println("Node Name: " + ni.getNodeName());
}
Thanks,
bwj