Hi,
I created a workflow to restore a VM and for next step “WaitForJobCompletion” I have to parse the output of the execute step.
Therefore I have defined a global Variable “RestJobID” and try to set it using a OnComplete Script.
This is the OnComplete Script:
XML outputXml = utils.parseXml(xpath:{/workflow/Execute_VM-Restore/outputXml});
if (outputXml != null) {
workflow.setVariable("RestJobID", outputXml.getText("//jobIds"));
}
I can see the JobID of the restore Job in the Log, but my script is not working as expected.
And I don’t know Java.
I spent hours searching and trying, but without success.
Could someone please give me a hint?
Thank you.