JBoss Community

Inserting new facts into a running process?

created by Michael G in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community