Marcelo Zabalet [
https://community.jboss.org/people/zabalet] created the discussion
"Re: Get Activity Coordinates"
To view the discussion, visit:
https://community.jboss.org/message/789809#789809
--------------------------------------------------------------
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
[
https://community.jboss.org/message/789809#789809]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]