[jboss-dev-forums] [jBPM Development] - Couldn't retrieve the node name for the process instance in JBPM 5.0.0
Feki Ahmed
do-not-reply at jboss.com
Mon Feb 11 11:57:16 EST 2013
Feki Ahmed [https://community.jboss.org/people/bardelman] created the discussion
"Couldn't retrieve the node name for the process instance in JBPM 5.0.0"
To view the discussion, visit: https://community.jboss.org/message/797109#797109
--------------------------------------------------------------
Hi,
i tried to get the node Instance Id's using this method :
public Long getNodeInstanceId() {
if(getRfpi()!=null)
if(getRfpi().getNodeInstances().iterator().hasNext())
nodeInstanceId = getRfpi().getNodeInstances().iterator().next().getNodeId();
return nodeInstanceId;
}
WHERE getRfpi() is defined by :
public static RuleFlowProcessInstance getRfpi() {
if(processInstance!=null)
rfpi =(RuleFlowProcessInstance)processInstance;
return rfpi;
}
this worked fine BUT when i tried to get the node name by almost the same way :
public static String getNodename() {
if(getRfpi()!=null)
if(getRfpi().getNodeInstances().iterator().hasNext())
nodename= getRfpi().getNodeInstances().iterator().next().getNodeName();
return nodename;
}
i got a NullPointerException pointing to this method..
Any Help please ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/797109#797109]
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/20130211/6b2d27ec/attachment.html
More information about the jboss-dev-forums
mailing list