Wait for condition is not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 11:09 PM
Hi all,
my wait for condition is not working in work flow if I am applying on import set table.
below is the script
// Set the variable 'answer' to true or false to indicate if the condition has been met or not.
var importvalue = new GlideRecord('sys_import_set');
importvalue.addQuery('sys_id',workflow.scratchpad.importsetsysid);
importvalue.addQuery('state','processed');
importvalue.query();
if(importvalue.next()){
gs.info(importvalue.state+"testing for new value");
answer = true;
}
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 11:52 AM
Are you seeing the gs.info message? What do you mean by it is not working? Is it always going to true or is it never moving forward?