[jboss-user] [jBPM] - Re: Get Activity Coordinates

Marcelo Zabalet do-not-reply at jboss.com
Wed Jan 9 14:05:09 EST 2013


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130109/4cc4ce32/attachment-0001.html 


More information about the jboss-user mailing list