cancel
Showing results for 
Search instead for 
Did you mean: 

Keeping Work Item When Cancelling

al_cantrell3
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

al_cantrell3
Explorer
0 Kudos

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

former_member185167
Active Contributor
0 Kudos

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

egor_malov
Contributor
0 Kudos

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.