Getting Partial response from kie-server Restful webservice
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, tools, and much more.