Skip to content

Commit

Permalink
Merge pull request #63 from sadhanaa21/963-improve-null-check-in-cons…
Browse files Browse the repository at this point in the history
…ume-fulfillmentfeed-service-for-empty-shipments-list

Improved: Added return statement with warning type if there is no shipments
  • Loading branch information
mridulpathak authored Mar 15, 2024
2 parents 9c116aa + 57efe14 commit 3b4a22a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ under the License.
valid shipments data, or it may be due to some other unexpected JSON generated to be consumed,
then the file can be checked further for any possible issue. -->
<if condition="!shipments">
<message type="warning" error="true">System message [${systemMessageId}] for Type [${systemMessage?.systemMessageTypeId}] has messageText [${systemMessage.messageText}], with Fulfillment Feed file having incorrect data and may contain null, not consuming the feed file.</message>
<return type="warning" message="System message [${systemMessageId}] for Type [${systemMessage?.systemMessageTypeId}] has messageText [${systemMessage.messageText}], with Fulfillment Feed file having incorrect data and may contain null, not consuming the feed file."/>
</if>
<entity-find-one entity-name="moqui.service.message.SystemMessageTypeParameter" value-field="consumeSmrParam">
<field-map field-name="systemMessageTypeId" from="systemMessage.systemMessageTypeId"/>
Expand Down

0 comments on commit 3b4a22a

Please sign in to comment.