I have created a simple workflow that merges both the Checks for File on Guest and Deletes File on Guest canned workflow. I am inserting a decision element that I would liek to take the OUTPUT (exists boolean out-param) from the Set Result scriptable task within (from the Check for File on Guest) and bind it to the input of my decision. Essentially, if the exist parameter is true, it will excute the script to delete the file. However, I can not figure out how to bind the input of the decision to the output of SetResult. I am including a snippet showing the desired workflow. Also below is the script of SetResult that shows the exists out-param.
exists = false;
for (var i in result) {
var f = result[i];
System.log(">" + f.path + "<");
System.log(">" + path + "<");
System.log(f.path + " : " + f.type + " p:" + (f.path == path) + " f:" + (f.type == "file"));
if (f.path == path && f.type == "file") {
exists = true;
break;
}
}
Image may be NSFW.
Clik here to view.