[jboss-dev-forums] [jBPM Development] - Possible Bug: querying nodeInstanceLog by processId and nodeId does not work

mayank sahai do-not-reply at jboss.com
Fri Apr 5 12:45:11 EDT 2013


mayank sahai [https://community.jboss.org/people/mesa] created the discussion

"Possible Bug: querying nodeInstanceLog by processId and nodeId does not work"

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

--------------------------------------------------------------
i am trying to query nodeinstance log table to find current "state"of process. as required i have configured JpaProcessInstanceDbLog and all node transitions entries are properly logged in nodeinstance Table

i am using code: 

          for(NodeInstance node :wflowProcessInstance.getNodeInstances()){
                List<NodeInstanceLog> nodeInstanceLogList = log.findNodeInstances(instance.getId(), String.valueOf(node.getId()));
                if(nodeInstanceLogList.size()==1){
                    return node.getNodeName();
                }
           }

 log.findNodeInstances(instance.getId(), String.valueOf(node.getId())); ---------------------------- does not return anything though there are entires in database tables and it generates correct sql query.


BUT if i try:

List<NodeInstanceLog> stored= log.findNodeInstances(instance.getId()); ----------------------------- returns all rows correctly.

can someone help ?.
--------------------------------------------------------------

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

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/20130405/da34c6a8/attachment.html 


More information about the jboss-dev-forums mailing list