Wait for condition is not working

keshav77
Tera Contributor

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

brianlan25
Kilo Patron

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?