Getting Partial response from kie-server Restful webservice

Solution Verified - Updated -

Issue

I am passing multiple OrderEntries as a fact in my request payload to kie-server container, but while receiving response I am getting only one element of OrderEntries.

Here is my payload request.

<batch-execution>
  <insert out-identifier="order" return-object="true" entry-point="DEFAULT">
    <com.example.OrderImpl>
      <totalValue>1000</totalValue>
      <totalOrderQuantity>10</totalOrderQuantity>
      ...
    </com.sample.OrderImpl>
  </insert>
  <insert out-identifier="orderEntry" return-object="true" entry-point="DEFAULT">
    <com.sample.OrderEntryImpl>
      <ID>1001-CT</ID>
      ...
    </com.sample.OrderEntryImpl>
  </insert>
  <insert out-identifier="orderEntry" return-object="true" entry-point="DEFAULT">
    <com.sample.OrderEntryImpl>
      <ID>1002-CT</ID>
      ...
    </com.sample.OrderEntryImpl>
  </insert>
  <insert out-identifier="orderEntry" return-object="true" entry-point="DEFAULT">
    <com.sample.OrderEntryImpl>
      <ID>1003-CT</ID>
      ...
    </com.sample.OrderEntryImpl>
  </insert>
  <fire-all-rules/>
</batch-execution>

Here is a response.

<org.kie.server.api.model.ServiceResponse>
  <type>SUCCESS</type>
  <msg>Container testContainer successfully called.</msg>
  <result class="execution-results">
    <result identifier="orderEntry">
      <com.sample.OrderEntryImpl>
        <ID>1003-CT</ID>
        ...
      </com.sample.OrderEntryImpl>
    </result>
    <result identifier="order">
      <com.sample.OrderImpl>
      <totalValue>1000</totalValue>
      <totalOrderQuantity>10</totalOrderQuantity>
       ...
      </com.sample.OrderImpl>
    </result>
    <fact-handle identifier="orderEntry" external-form="0:34:1291910638:1291910638:34:DEFAULT:NON_TRAIT:com.sample.OrderEntryImpl"/>
    <fact-handle identifier="order" external-form="0:31:70403732:70403732:31:DEFAULT:NON_TRAIT:com.sample.OrderImpl"/>
     </result>
</org.kie.server.api.model.ServiceResponse>

i.e. I expect to get all of three orderEntry elements in response, but got only one element .

Environment

  • Red Hat JBoss BPM suite
    • 6.3.x
  • Red Hat JBoss BRMS
    • 6.3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.