Troubleshooting
Problem
Attempts to Invoke confirmDraftOrder and processReturnOrder APIs in single transaction boundary causes StackOverFlowException in IBM Sterling Order Management.
Symptom
StackOverFlowException will occur with ON_SUCCESS event of confirmDraftOrder while invoking processReturnOrder.
Cause
Both the API's are invoking changeOrder.
Resolving The Problem
confirmDraftOrder is a special invocation of changeOrder and processReturnOrder internally invokes changeOrder to commit changes. So both the APIs eventually invoke changeOrder internally. So trying to call processReturnOrder within confirmDraftOrder here is equivalent to calling changeOrder on_success of changeOrder, which should be avoided.
processReturnOrder API can be called as async service with confirmDraftOrder API.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21977401