Skip to Content
author's profile photo Former Member
Former Member

Order Cancellation Action invoking before completion of consignment completion Action

Hi, When I am canceling an order through OMS, some times order moving to completion state in place of Cancel state.

What's expected : order-process workflow's verifyOrderPostCancellationAction needs to be invoked after completion of consignment-process workflow's verifyConsignmentCompletion action. Because verifyOrderPostCancellationAction verifies all consignments associated to order are in cancelled state or not. If it is true then only Order status moved to Cancel.

Whats happening : verifyOrderPostCancellationAction action is invoking before completion of verifyConsignmentCompletion. So, verifyOrderPostCancellationAction returning response as "NOK" (consignment's of the order still not moved to completion state) and order moved to completion state by invoking "verifyOrderCompletionAction.

Is there any way to stop invoking verifyOrderPostCancellationAction until completion of verifyConsignmentCompletionAction.

Thanks in advance.

Cheers , Shashidhar.K

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 06, 2016 at 08:04 PM

    Can you specify which version are you using? Looking at it now on 6.0, the verifyOrderPostCancellationAction is gone and verifyConsignmentCompletion is use only for reallocation. Did you find this use case running integration test and cancelling right after reallocating?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 08, 2016 at 01:48 AM

    Hi Jerome, Many thanks for your response. We are using 5.7 version. We have noticed this issue while cancelling the order through OMS after the order moved to ready state(after allocation) and integration tests not executed yet.

    I have fixed this issue by customizing the "verifyOrderCompletionAction" with following code. But, I am not sure whether my understanding to fix this issue is correct or not.

    VerifyOrderCompletionAction.java # if all the consignments of the order are in Cancelled state then return Transition.CANCEL.toString();

         <transition name="OK" to="postTaxes"/>
         <transition name="NOK" to="waitForOrderAction"/>
         **<transition name="CANCEL" to="verifyOrderPostCancellation"/>**
     </action>
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.