This content has been marked as final. Show 2 replies
Hi, I am familiar with the mechanism in 7.0.3, not sure whether and how this may have changed in 7.2
The PONR is controled via the Transition Condition for the Submit Amendment transaction in the order state policy.
There is one example in the design studio help, which, I believe, return fn:true or fn:false.
Another example from O2A where it resturn fn:true or fn:error, where I think the advantage is that you can do a custom error message to be returned in the web service
Let me start with the simpler case 2 from your scenarios:
let $taskData := fn:root(.)/GetOrder.Response
let $orderStatus := $taskData//orderStatus/text()
if ($orderStatus = "PonrReached")
The other would be more difficult to achieve, because you would need to see the order history.
Basically there are two ways IMO to do it, xml api or ws GetOrderProcessHistory.
But to access the XML API you need the context object and I do not this the application give it to you here - you would need to test it or ask support.
To access the WS you would need to go through a data instance but I do not see the way to define one for the PONR statement which in 703 is the Transition Condition.
Anyway, as a workaround, if none of the abovementioned ways to access the process history is possible, the simples way for you would be to define a task notification automator on say task 4 state completed which will set the element to the required value.
Hope this helps.