[rules-users] Simple Rule Flow
Tihomir Surdilovic
tsurdilo at redhat.com
Tue May 3 10:03:49 EDT 2011
You are most likely starting the process, but not firing rules, for example:
ksession.startProcess( "myprocess" );
ksession.fireAllRules(); // you need this
Thanks.
Tihomir
On 5/3/11 9:59 AM, sdinoo wrote:
> I am new to drools
> All I want to do is create a simple rule flow with a rule task that executes
> a particular Rule-flow group
>
> Here is what my rule looks like
> rule "rule1" ruleflow-group "group1"
> when
> eval(true)
> then
> System.out.println("Bingo");
> end
>
> in my Rule flow i have
> Start->hello world(sysouts Helo world) ->Rule Task->End
>
> Rule Task attributes are configured with the rf group as "group1"
>
> my calling program ProcessTest.java does have these two lines
>
> kbuilder.add(ResourceFactory.newClassPathResource("ruleflow.rf"),
> ResourceType.DRF);
> kbuilder.add(ResourceFactory.newClassPathResource("Sample.drl"),
> ResourceType.DRL);
>
> BUT
> When I run the program I only to see "Hello World" I expect to see "Hello
> World" followed by "Bingo"
>
>
> Iam certianly doing something wrong - Can you please help?
>
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Simple-Rule-Flow-tp2894351p2894351.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list