[jboss-dev-forums] [jBPM Development] - Re: Getting activity coordinates

roxy1987 do-not-reply at jboss.com
Tue Mar 5 11:02:10 EST 2013


roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Getting activity coordinates"

To view the discussion, visit: https://community.jboss.org/message/800836#800836

--------------------------------------------------------------
Got the coordinates using 


List<NodeInstanceLog> nodeInstanceLogList;
   for (Node node : (Node[])((WorkflowProcessImpl) process).getNodes())
   {
    nodeInstanceLogList = JPAProcessInstanceDbLog.findNodeInstances(Long.parseLong(processInstanceId), new Long(node.getId()).toString());
    if(nodeInstanceLogList.size() == 1)
    {
     coordinates.add(node.getMetaData().get("x")+"");
     coordinates.add(node.getMetaData().get("y")+"");
     coordinates.add(node.getMetaData().get("height")+"");
     coordinates.add(node.getMetaData().get("width")+"");
    }
   }


Thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/800836#800836]

Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130305/91065153/attachment.html 


More information about the jboss-dev-forums mailing list