AnsweredAssumed Answered

Simple rule not printing

Question asked by ulrich zink on Feb 19, 2018
Latest reply on Feb 21, 2018 by Jill Ross

I am trying to run the simplest rule with the rule executer in PDI but I fail to understand why the results don't get printed.

 

Here is the rule and the ktr file is attached

 

package org.pentaho.di.trans.steps.rules
import org.pentaho.di.trans.steps.rules.Rules.Column;
global java.util.List list

rule "A"
dialect "java"
  when
  $foo: Column(name == "foo", payload == 'A')
  then
  Column Status = new Column();
  Status.setName("Status");
  Status.setType(String.class.toString());
  Status.setPayload("a");
  insert(Status);
end

rule "B"
dialect "java"
  when
  $foo: Column(name == "foo", payload == 'B')
  then
  Column Status = new Column();
  Status.setName("Status");
  Status.setType(String.class.toString());
  Status.setPayload("b");
  insert(Status);
end

rule "C"
dialect "java"
  when
  $foo: Column(name == "foo", payload == 'C')
  then
  Column Status = new Column();
  Status.setName("Status");
  Status.setType(String.class.toString());
  Status.setPayload("c");
  insert(Status);
end

Attachments

Outcomes