JBoss Community

Re: Getting activity coordinates

created by roxy1987 in jBPM Development - View the full discussion

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

Start a new discussion in jBPM Development at Community