if condition 1 or 2 are evaluated as true the job will be put into HOLD status and the AM engine will stop processing conditions for the job
1. if today is not the last day of the month then run the job
2. if the CLM_EMAIL_ANS has completed successfully within the last 5mins then run the job
this set of conditions should mean that on any day that is not the last day of the month the job will just run, but on the last day of the month before running it will check to see whether the CLM_EMAIL_ANS has completed in the last 5minutes. if not, then condition 3 will be evaluated which will stop any further evaluation of whether the job can be run for 2 minutes, after which the AM engine will again start evaluating the job conditions to see if the job can run
Original Message:
Sent: Feb 24, 2023 04:28 PM
From: William Betters
Subject: working with conditions
I've read through your response a few times now, really trying to digest what it is you are saying to ensure I undestand. By check_file, I'm guessing that refers to the 0.XXXX sysout file that is created? Not sure why that does not setting well with me as a definite/finite solution if so. But I can give that a try still.
What I have done so far with your other recommendations, as test.
The job to be placed on hold dependent on date: clm_email_tst
The trigger job to release that hold on success: clm_email_ans
So I have tested kicking off clm_email_tst in a hold state successfully.
Here are the conditions for that job.

The first one is the live test, the second is the actual month end test. And the third is the trigger condition.

When I execute the clm_email_ans job, it just emails me.... But the clm_email_tst never changes.
Shouldn't that see the state of the clm_email_ans job finishing successfully, and toggle to run the task?
------------------------------
Willy B.
Oracle DBA
Original Message:
Sent: Feb 22, 2023 01:35 PM
From: Charles Huang
Subject: working with conditions
Alas the reply is messed up by EDIT.
Use Condition, [BEFORE][CHECK FILE] and if file does not exist, DELAY TASK for X minutes, with every time the condition is true -- so you don't need the HOLD. And then in Process Flow B, add extra steps to create/remove the flag file. eg RUN_X_FLAG.
Or else, you can create a subvar in chain B so that chain A can have a step to check if subvar value equals to something, then wait or run.
Original Message:
Sent: Feb 21, 2023 09:58 AM
From: William Betters
Subject: working with conditions
New to appworx, trying to put a safety in place for two process flows. Manual intervention is showing human error prone.
process flow, "daily batch" (A) runs daily.
Process flow (B) runs at the end of the month.
While flow A is running and job X kicks off, it needs to be immediately put on hold until a certain job in flow B completes.
Trying to figure out a way to add a condition to job (A), so that if the date is the last day of the month, it fires off on hold.
Can someone point me to some really good documentation on using the conditions? What I am finding so far is cryptic and extremely unintuitive.