flow designer wait for condition builder script not working?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 03:28 AM
I have used below script to check the devicehash and if it consist any value it can go further otherwise it should wait until it get the value. Please check below otherwise suggest me another base practice if any?
var devicehash = fd_data.trigger.request_item.variables.device_hash.getValue();
if(devicehash != ""){
answer = true;
}
else{
answer = false;
}
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 03:43 AM
Hi,
Instead of answer try
return true;
return false;
-Anurag
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 05:19 AM
I also tried with return but it just thrown below as error.
java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')