1 Reply Latest reply on Mar 5, 2013 11:01 AM by Shobhit Tyagi

    Getting activity coordinates

    Shobhit Tyagi Master

      Could anyone help me with getting the activity coordinates in jbpm 5 please.

       

      https://community.jboss.org/thread/217574

       

      Thanks.

        • 1. Re: Getting activity coordinates
          Shobhit Tyagi Master

          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.