DBMS_SCHEDULER file watcher and job chains
I am a little confused about how to integrate a file watcher into a job chain. Per https://docs.oracle.com/database/121/ADMIN/scheduse.htm#ADMIN12459
29.6.5 Adding Rules to a Chain
The subsection "Starting the Chain" states that
at least one rule must have a condition that always evaluates to TRUE so that the change can start when the job chain starts.
So I currently have successfully created a file watcher that invokes a PL/SQL procedure to insert information from the File Watcher payload into a table. What I want to do is to kick off a Job Chain that checks the return code from the file watcher and then proceeds appropriately; what I don't understand is where I put a call to dbms_scheduler.run_chain to run my chain, but only if I get a good return code from the file watcher? Or do I have my file watcher as a step in a chain?