aboutsummaryrefslogtreecommitdiffstats
path: root/PolicyEngineAPI/Test/test.Config_BRMS_Raw_TestBrmsPolicy.1.txt
blob: 1982255bf716c00fc70779c8567d32421390e75c (plain)
1
2
3
4
5
6
7
8
9
10
11
rule "B to C"
      agenda-group "B to C"
      auto-focus true       
  when
      State(name == "B", state == State.FINISHED )      
      c : State(name == "C", state == State.NOTRUN )
  then
      System.out.println(c.getName() + " finished" );
      c.setState( State.FINISHED );
      kcontext.getKnowledgeRuntime().getAgenda().getAgendaGroup( "B to D" ).setFocus();
end