AnsweredAssumed Answered

How to retrieve the transactionId from Policy Xpress?

Question asked by john.g.johnson on Aug 27, 2012
Latest reply on Jul 14, 2015 by Bill_Patton
I need to be able to retrieve the transactionId of a task executing from Policy Xpress. To clarify, when submitting a task via TEWS, I'm referring to the XML element returned to the client (e.g. SoapUI); for example:

<soapenv:Envelope xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://tews6/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ImsStatus version="6.0">
<transactionId>1f2ae25f-2f464d3e-c5480da4-d20c134</transactionId>
</ImsStatus>
</soapenv:Body>
</soapenv:Envelope>

Obviously, the program that submits the task has access to this data... but I need to pass this value as a parameter in a PX Policy Action.

I have considered the possibility of using data elements available under category Events to query the task persistence database directly -- and that would probably work in most cases. However if two tasks were submitted around the same time for the same user, there would be no way to distinguish between them to get the right one. This should be rare, but I would rather avoid such a hack if possible.

Any ideas on how to do this?

Outcomes