に出力を送信するには条件はどのように以下のDroolsのJava
import com.sample.TestExample;
import com.sample.TestExample.Message;
rule "Hello World"
when
m : Message(product == Message.tv, myMessage : message)
then
System.out.println(Message.tv);
System.out.println("Product Spec is:: Service.TV_SAT"); // This output i want send back to java
end
rule "GoodBye"
when
n : Message(product == Message.smart, myMessage : message)
then
System.out.println(Message.smart);
System.out.println("Product Spec is:: Service.SMARTOFFICE"); // This output i want send back to java
end
rule "Else condition"
when
e : Message(product != TestExample.productClass)
then
System.out.println(TestExample.productClass);
System.out.println("in drools else condition"); // This output i want send back to java
end
に基づいて私が使用しているDroolsのある私はセットを使用してみましたとメソッドを取得しますが、それは働いていません。
すべてのヘルプ
は、「Javaへ送り返す」で
は私が使用してのように試してみましたセット機能---- >> m.setProductSpec( "Service.TV_SAT"); – kanni