[jboss-user] [jBPM] - Inserting new facts into a running process?

Michael G do-not-reply at jboss.com
Mon Jun 18 16:20:58 EDT 2012


Michael G [https://community.jboss.org/people/mpgong] created the discussion

"Inserting new facts into a running process?"

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

--------------------------------------------------------------
Hello,

I have a process that has a script task node that gets data that needs to be inserted in the knowledge session because the next task following is a business rule task.  But i don't think the rules are running because there are now facts to match against.  How are new facts inserted at runtime inside a process?

I've tried this kcontext.getKnowledgeRuntime().insert(itemList) but that doesn't seem to cause the engine to fire any rules even though i know the data should.

Does anyone know how to insert the facts properly?  Unfortunately i can do it ahead of time, also i insert the process into the session as well to get at process var so i hope that isn't causing any issues with things.

Thanks
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120618/4dbf8332/attachment.html 


More information about the jboss-user mailing list