How to insert facts into kSession from a script task of a BPMN2 process flow ?
Issue
- How to insert facts into
kSessionfrom within a process flow (e.g.Script Task) so that aBusiness Rule Taskcan 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 Taskwhich is just ahead of theBusiness Rule Taskin 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
