Skip to Content
avatar image
Former Member

Keeping Work Item When Cancelling

Dear WF Developers,

Our Engineering Supervisor has requested the ability to change the overall project completion date and set the design due date from within an existing workflow.  The workflow is triggered when a user enters a quote with the material "Newsize" on it.  This in turn, triggers a new size workflow.

To accommodate this request, we created a method in an existing custom object type to allow the engineering manager to enter these dates.  Once entered, the dates are stored in workflow container elements.

We'd like this new date selection task to stay in their in box, if they select the cancel option. See below for the current screen we are giving them.

Can you please tell me how we keep the task in their in box when they press the X to cancel?

Thanks for any direction,

Al

Need_Dates.jpg (15.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jan 09, 2015 at 07:53 PM

    HI, Al,

    If the method is synchronous, EXIT_CANCELLED exception should be thrown (for more information see  Programming Synchronous Methods - SAP Business Workflow - SAP Library)

    If the method is asynchronous, make sure that the terminating event ( tha terminates the workitem) is *not* fired when user cancelled the input.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2015 at 08:35 PM

    Hello,

    "Can you please tell me how we keep the task in their in box when they press the X to cancel?"

    Doesn't it do that already? What happens now when they press X to cancel?

    regards

    Rick Bakker

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2015 at 10:43 PM

    Hi Rick and Egor,

    When the user presses X, it just goes to the next WF step.  This is an synchronous step and the programming notes from the library mentioned look very promising.

    Thank you both for your help!

    Al

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2015 at 12:45 PM

    Hi Al,

    You can change the method as asynchronous and include terminating event to prevent the issue.

    Also you can use the 'Confirm end Processing' option at the task level.

    Thanks,

    Vijay.

    Add comment
    10|10000 characters needed characters exceeded