I'm having some trouble using the 'Decision' step in a RestCaller_get orchestration. The orchestration calls out to an API that returns a value containing 'true' or 'false' (example below) in the resultXML.
Once the orchestration reaches the 'Decision' step I want to throw an error if it returns 'false'. I'm having trouble writing a rule that will guide the call down the correct decision branch. I have a calculation step that puts the resultXML into a string field I created as working data which I then use in my rule (screenshot). I can get the orchestration to validate and deploy but when it runs I get the following message on the common log "The following condition is triggered at IsValid step: No condition."
Value copied to the target of ResultXML step:
<?xml version="1.0" encoding="UTF-8"?>
<ErrorMessage>ICL 1 is not a hardware graphics changelist</ErrorMessage>
CONTAINS( BodyXMLVariableIn\ValidationResults\SUCCESS, 'true')
Does anyone have any advice for me? Do any of you use something similar in your process apps?
Accepted Answer0David not sure if this link will help but you can open this app and see a real simple example of how the data mapping should work.
Using your example I mapped my data like this image and was able to get my fault to happen.