How to insert facts into kSession from a script task of a BPMN2 process flow ?
Issue
- How to insert facts into
kSession
from within a process flow (e.g.Script Task
) so that aBusiness Rule Task
can be executed using those facts during the execution of the process instance? - If
ksession.fireAllRuless()
method is called from the class which is responsible for executing the process instance containing aBusiness Rule Task
, is there a possibility that the rule task might get executed before any other task (lying ahead of it in the flow) attempts to execute?
e.g. Imagine there is aScript Task
which is just ahead of theBusiness Rule Task
in the process flow. Is it possible that if thefireAllRules()
method is called, the rule task will be fired immediately and before the rule task node is reached?
Environment
- Red Hat JBoss BRMS (BRMS)
- 5.3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.