Unable to quit chore using ChoreQuit
Posted: Mon Nov 18, 2013 2:31 pm
Hi all,
I have a TI process that checks the value of an element from a cube and executes a command (vb script to trigger email) accordingly. I have scheduled a chore to run this process every minute.
However, once the condition has been satisfied, I want to quit the chore. To achieve this, in the Epilog tab of the TI process, I have written the IF condition to check for the value of the element and execute command and ended it with ChoreQuit;. On activating this chore, I've noticed that the chore keeps running (thereby sending emails every 1 minute) despite the ChoreQuit;.
I've tried breaking the code by writing the IF statement in Prolog and ChoreQuit in Epilog but it did not quit the chore either.
My Epilog tab currently looks as this -
Can somebody please guide me as to what I'm missing due to which ChoreQuit is not functioning? I really appreciate your time and efforts.
Thanks
I have a TI process that checks the value of an element from a cube and executes a command (vb script to trigger email) accordingly. I have scheduled a chore to run this process every minute.
However, once the condition has been satisfied, I want to quit the chore. To achieve this, in the Epilog tab of the TI process, I have written the IF condition to check for the value of the element and execute command and ended it with ChoreQuit;. On activating this chore, I've noticed that the chore keeps running (thereby sending emails every 1 minute) despite the ChoreQuit;.
I've tried breaking the code by writing the IF statement in Prolog and ChoreQuit in Epilog but it did not quit the chore either.
My Epilog tab currently looks as this -
Code: Select all
v1=CellGetS ('<cube name', 'e1', 'e2');
v2=CellGetS ('<cube name', 'e2', 'e2');
v3=CellGetS ('<cube name', 'e3', 'e2');
IF(v1@='4');
ExecuteCommand('C:\Windows\SysWOW64\cscript.exe "E:\Program Files\SendMailWithParameters.vbs"',1);
endif;
if (v2@='4');
ExecuteCommand('C:\Windows\SysWOW64\cscript.exe "E:\Program Files\SendMailWithParameters_v2.vbs"',1);
endif;
if (v3@='4');
ExecuteCommand('C:\Windows\SysWOW64\cscript.exe "E:\Program Files\SendMailWithParameters_V3.vbs"',1);
ENDIF;
ChoreQuit;
Thanks