[rules-users] Starting a process in Guvnor with ruleflow-group

Chris Selwyn chris at selwyn-family.me.uk
Thu Oct 28 07:41:35 EDT 2010


I'm guessing here because I haven't played with rulegroups yet but...

Maybe what you are looking for is CommandFactory.newStartProcess(String 
processId,  Map<String,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 a"startProcess"is 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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101028/629007c3/attachment.html 


More information about the rules-users mailing list