私は Kie Execution Server 6.2 final を使用しており、単純なルール ファイルをサーバーにデプロイしており、rest API を介してアクセスしています。ルールを実行しようとすると、すべてうまくいきますが、応答に新しく挿入された事実が得られません。
ここに私のdrlファイルがあります
rule "Odd Rule"
dialect "mvel"
when
testRecord : TestRecord((integerValue & 1) == 1 && integerValue != 0 , testId: testRecordId , intValue :integerValue )
then
System.out.println( "Odd Rule- Test ID "+ testId );
TestResult $testResult = new TestResult();
$testResult.setTestrecordId(testId);
$testResult.setDescription("Odd Rule");
$testResult.setValueInteger(intValue * (-10));
insert($testResult);
end
サーバーにリクエストを投稿する
<batch-execution>
<insert out-identifier="TestReord">
<com.drools.poc.TestRecord>
<integerValue>10</integerValue>
<testRecordId>10</testRecordId>
</com.drools.poc.TestRecord>
</insert>
サーバーからの応答
<response type="SUCCESS" msg="Container Container1 successfully called.">
<results><execution-results>
<result identifier="TestReord">
<com.drools.poc.TestRecord>
<integerValue>10</integerValue>
<testRecordId>10</testRecordId>
</com.drools.poc.TestRecord>
</result>
<fact-handle identifier="TestReord" external form="0:29:1697585638:1697585638:29:DEFAULT:NON_TRAIT"/>
</execution-results></results>
</response>