Hi ,
Correct me if i am wrong. You are trying to unlock all the services before you start your deployment process.If yes, here is the solution.
Step1:call the service wm.server.ns:getLockedNodesForAllUsers which gives you list of nodes which are locked for multiple users.This gives you a ByUser document list.
Step2:Loop over by user list fetched from step 1 and execute the step under the loop.
LoopStep1: convert byUser document to XML Values.(pub.document:documentToXMLValues)
LoopStep2:XML string to XML Node(pub.xml:xmlStringToXMLNode)
LoopStep3: create a temporary list something like LockedServiceList. query the xml node by query as “*/record/record/@name”,QueryType:XQL,onNull=Continue and result type as string.(pub.xml:queryXMLNode).
LoopStep4: branch to check the LockedServiceList is null or not . if not null then append to LockedServiceList
Step3: drop byUser document.
Step4: Loop over LockedServiceList obtained in step2.
LoopStep1:pass each value to the service wm.server.ns:unLockNode.This returns the no of nodes unlocked.
I hope this will help you.
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB