07-11-2012 11:08 AM
Hi All,
I need to cancel ongoing requisition from another service using web service agent task.
I have used cancelRequest method of RequisitionService.wsdl.It was working fine and canceling ongoing requisitions. But if the task in the service plan has 'Do not cancel once the task starts' it is failing to cancel such requests getting the error 'Request id xxxx is in PONR status. You can not cancel this'.
I need to cancel the ongoing requests which is having the ongoing 'Do not cancel once the task starts' task on the fly from another service using agent task.
Please suggest any approach to achieve that.
Thanks,
Uday Shankar
Solved! Go to Solution.
07-11-2012 01:30 PM
Hi Uday,
What you are seeing is a correct and expected product behaviour. It is not possible to cancel these tasks through API.
You can cancel entire Requisitions in "PONR status" using Service Manager user interface.
Thanks,
Max.
07-11-2012 11:00 PM
Hi Uday,
There is no API to help you in this case. PONR requisitions can only be cancelled from Service Manager UI by administrator or user who has been specifically granted access to cancel such requisitions.
PONR requisitions should not be treated lightly, it usually means that some work was done in external system but the process has not been fully completed. Canceling such requisitions might result in incorrect/stale/corrupt data in 3rd party systems.
Depending on your scenario, you might want to consider modifying service design to avoid PONR status. Although I suspect there was a specific reason why task was marked such way.
Thanks,
Max.
07-11-2012 01:30 PM
Hi Uday,
What you are seeing is a correct and expected product behaviour. It is not possible to cancel these tasks through API.
You can cancel entire Requisitions in "PONR status" using Service Manager user interface.
Thanks,
Max.
07-11-2012 10:52 PM
Thanks Max,
Is there any API call to cancel requissition or cancel tasks from Service Manager point of view.
Please suggest.
Thanks,
Uday Shankar
07-11-2012 11:00 PM
Hi Uday,
There is no API to help you in this case. PONR requisitions can only be cancelled from Service Manager UI by administrator or user who has been specifically granted access to cancel such requisitions.
PONR requisitions should not be treated lightly, it usually means that some work was done in external system but the process has not been fully completed. Canceling such requisitions might result in incorrect/stale/corrupt data in 3rd party systems.
Depending on your scenario, you might want to consider modifying service design to avoid PONR status. Although I suspect there was a specific reason why task was marked such way.
Thanks,
Max.
07-12-2012 03:46 AM
Thanks Max,
Is there any way to perform the monitor delivery task of ongoing request from API call i.e. through NSAPI or Web Service call?
Thanks,
Uday Shankar
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide