JBoss Community

Re: Get Activity Coordinates

created by Marcelo Zabalet in jBPM - View the full discussion

Maybe there is a simple way, but here goes something:

 

 

This gives you the list of visited nodes (actuals and past)

List<NodeInstanceLog> nodeInstanceLogs = JPAProcessInstanceDbLog.findNodeInstances(new Long(processInstanceId));

 

Iterates and acquire Node objects

for (NodeInstanceLog nodeInstanceLog : nodeInstanceLogs) {

    Node node = ((WorkflowProcess) process).getNode(Long.parseLong(nodeInstanceLog.getNodeId()));

    // ie: this gives you x coordinate: node.getMetaData().get("x");

}

 

Hope this help.

Reply to this message by going to Community

Start a new discussion in jBPM at Community