You can use javascript to update the variables.
Create two alerts: one for file found, one for file not found. In file found set the variable to true, in file not found set the variable to false.
Create a job that looks for the file to exist; it should fail if the file is not there
In the job, specify a notification alert such that if the job fails it raises alert for fail; if it is successful (complete) then raise the found alert
If you need to, set the failed alert to also auto-mark the job complete so that it doesn't create false "failed jobs" in the system using the below
if (WOB._cmpc != null && WOB._subcount > WOB._retrycount)
{
execCommand('%(WOB._fullname)','%(APPL._name).%APPL._gen', 'ACTION COMPLETE');
}
Original Message:
Sent: 07-14-2020 12:39 AM
From: Sachin Bal
Subject: How to set variable
My problem: On file server there may be a file called "abc.txt" if that file is present then i want to set a variable FileFoun = 'True' or else set it to 'False'.
After that workflow will resume. I will use variable is next steps.