I'm guessing here because I haven't played with rulegroups yet but...
Maybe what you are looking for is CommandFactory.newStartProcess(String
processId, MapString,Object parameters)
Chris
On 27/10/2010 21:27, John Peterson wrote:
Hi all,
I'm doing some experimentation for a business problem and I've hit a
snag when it comes to Guvnor and Ruleflow-Groups.
I'm using Guvnor 5.0.1 and Drools 5.0.1.
I've uploaded a simple 4 step (plus start and end) ruleflow-group to
Guvnor. I've addedruleflow-group attributes to all my rules,
associating them to one of the four steps in my ruleflow. My code for
the execution is as follows:
cmds.add(CommandFactory./newInsertElements/(recordsToRun));
*try*{
KnowledgeBase kbase =/readKnowledgeBase/();
StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
ExecutionResults_results_=
ksession.execute(CommandFactory./newBatchExecution/(_cmds_));
}*catch*(Exception e) {
System./out/.println(Exception in readKnowledgeBase: + e.getMessage());
}
I've seen in other documentation that astartProcessis in order (e.g.
ksession.startProcess(ruleflowname)), however, startProcess is not
available for StatelessKnowledgeSessionand the process is in Guvnor
already, not locally. I'm guessing it is something simple I've
overlooked, but it isn't clicking for me at this point and my search
online for answers hasn't found one yet. Any suggestions would be
appreciated.
Thanks!
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
No virus found in this message.
Checked by AVG - www.avg.com http://www.avg.com
Version: 10.0.1152 / Virus Database: 424/3220 - Release Date: 10/26/10
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users