roxy1987 [
https://community.jboss.org/people/roxy1987] created the discussion
"Re: Get Activity Coordinates"
To view the discussion, visit:
https://community.jboss.org/message/790204#790204
--------------------------------------------------------------
Great. It is working now.
I mixed your two code frags to get the currently active task. Becuase the previous code
gives me both type 0 and type 1 nodes and the other code gives me all the nodes of the
process. So I am checking if a node has both type 0 and type 1 then it has definitely been
completed. Otherwise it is pending. Btw. I am hoping that there are only 2 types for a
task. Enter and Exit.
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(
"height"));coordinates.add(node.getMetaData().get(
"width"));}
}
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/790204#790204]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]