crm_view - BO for an an Existing External table
Invoice - BO an Aware table
"Scrape" Process needs to run periodically to read crm_view instances after a specified date, then create Invoice instances IF one does not exist already.
After that process is done, all instances of two other BOs need to be updated.
All works fine when I run "Scrape" from a menu, then run the two "Update" processes via a menu.
My challenge is how to get the Updates to automatically execute once after the "Scrape" is complete.
Process: Scrape_Invoices_From_View_1
Rule 1 - FIND crm_view WHERE crm_view.invoice_date>=SystemSettings.Invoice_Scrape_Beg_Date AND crm_view.invoice_date<=SystemSettings.Invoice_Scrape_End_Date IN BATCHES OF 1
Rule 2 - If COUNT Invoice WHERE (Invoice.Job_Number=crm_view.job_number)=0 Then
Scrape_Invoices_From_View_2
Process: Scrape_Invoices_From_View_2 (Input: crm_view)
Rule 1 - FIND ... [this is all good .. FINDs a bunch of related BOs that need to be referenced in the CREATE]
Rule 2 - CREATE Invoice WITH ...... [this is all good]
My challenge is how to insert the FIND ALL Sales_by_BDL // UPDATE Sales_by_BDL into ... Process: Scrape_Invoices_From_View_1 ... so it only executes once at the end of processing all crm_view records.
Any clues?