← 8 Schedule (Data Lineage) / ↑ 3.3 Foundry QS1 / → 8b Governance

26.1112 17:00 (converted from docx source file to markdown+PNGs by ChatGPT)


This chapter should have been after ch7. But in this QS version it was done after ch8. A future QS version will fix the order.

TOC


8a.0 What we will build

The Chapter 7 automation processes only newly added objects. Updating an existing object does not trigger another AI operation. Modify in this chapter so that automation processes updated objects.

Chapter 8a screenshot 1

  • 8a is a logical extension of Chapter 7. Run the AI operation again when an object’s Text or Integer changes. The Chapter 7 automation processes only newly added objects. In this chapter, extend the automation setup to also process existing objects when their Text or Integer properties change.
  • Do not trigger on CheckResult changes, because the AI operation writes that property and could trigger itself repeatedly.
  • Test: change an existing object’s Integer from 55 to 555, import the update, and verify that CheckResult changes from NOT FOUND to FOUND without manually running an Action.
  • Once implemented, update Chapter 8’s limitation note to reflect the added behavior.


8a.1 Inspect the automation’s trigger options

Check the available update triggers before changing the existing automation.

1. Open Automate.

2. Open 693_AIPL_CR_Automation (automation).

3. Click Edit.

Chapter 8a screenshot 2

4. Select Objects added under Condition.

5. Open the Objects added to set ▾ dropdown at the top. Objects modified in a set is the trigger we need.

Chapter 8a screenshot 3


8a.2 Create a second automation so that the Ch7 automation continues handling new objects

1. Close the dropdown.

2. Leave the editor without saving changes.

3. Return to the automation’s overview and open Actions. That menu shows the duplicate/copy options.

Chapter 8a screenshot 4

4. Click Duplicate.

5. Name the copy 693_AIPL_CR_Updated_Automation (automation) if prompted. Keep OntologyDemo001 as its location.

6. View the next screen before activating the copy so we can change its trigger and select which properties to monitor.

Chapter 8a screenshot 5

7. Set File name to:693_AIPL_CR_Updated_Automation

8. Replace Description with:


When an existing Capstone2Record object's Text or Integer changes, run 693_CheckAndSaveRecord to update CheckResult.

9. Click the pen for Object set condition.

10. In the dropdown shown, click Objects modified in a set at the bottom.

Chapter 8a screenshot 6

11. Under Specify properties to monitor Select Only trigger on selected properties.

12. Use Search… to select Text and Integer only. Do not select CheckResult.

13. Under Also trigger when, uncheck Objects added to set—the original automation already handles new objects.

14. Leave Objects removed from set unchecked. View the selected properties before continuing.

Chapter 8a screenshot 7

15. Correct: only changes to Integer or Text will trigger this automation. Added and removed objects are unchecked. Next, open 693_CheckAndSaveRecord (A2 Action) under Effects—use its pencil if needed. Verify that Record refers to the modified object, rather than the previously configured “new object added.”

Chapter 8a screenshot 8

The inputs are correct:

  • - Record: Capstone2Record modified
  • - Criteria: Match if the integer is greater than 100.

16. There is a Possible cycles warning. Click or hover over that warning and show its explanation. Do not create the automation yet—we should inspect the warning even though we excluded CheckResult from the monitored properties.

Chapter 8a screenshot 9

The warning says the Action modifies objects in the monitored set. Our configuration monitors only Text and Integer; A2 writes only CheckResult, so that write should not retrigger this automation.

17. Keep cycle detection enabled.

18. Next, open Condition → Objects modified → Advanced settings and verify:

  • - Disable automation if cycles are detected: ON
  • - Ignore changes from backing datasets: OFF

Chapter 8a screenshot 10

19. Then return to Summary and show it before creating the automation.

Chapter 8a screenshot 11

The configuration is ready:

  • 693_AIPL_CR_Updated_Automation (automation) monitors changes to Text and Integer.
  • 693_CheckAndSaveRecord (A2 Action) receives the modified object.
  • Cycle detection is ON.
  • - Ignore changes from backing datasets is OFF.
  • Summary shows No action required.

20. Click Create automation at the bottom right.

21. Then confirm its status is Active before we modify a test record.

Chapter 8a screenshot 12

Chapter 8a screenshot 13

693_AIPL_CR_Updated_Automation (automation) is Active. No events have run yet.


8a.3 Test an update to an existing object

1. In MockAPI, change only the integer of existing item Id 7 from 777 to 77. Preserve its Id, text, and all other items.

Chapter 8a screenshot 14

2. Build 693_MockAPI_Items (dataset) once, with Force enabled, to import the change.

Chapter 8a screenshot 15

Chapter 8a screenshot 16

Chapter 8a screenshot 17

3. In Insight, refresh the Capstone2Record objects table. Expected for Id 7:

  • - Integer: 77
  • - CheckResult: changes from FOUND to NOT FOUND

4. Do not manually run A2. We’re testing whether the updated-object automation runs it.

Chapter 8a screenshot 18

The update test passed. In Insight, existing object Id 7 now shows:

  • - Integer: 77
  • - CheckResult: NOT FOUND—previously FOUND
  • - Text: unchanged

5. Next, open Automate → 693_AIPL_CR_Updated_Automation (automation) → clock/history icon.

6. Select the newest event and verify that Id 7 triggered it and 693_CheckAndSaveRecord (A2 Action) completed successfully.

Chapter 8a screenshot 19


8a.4 End to end (add DS build scheduling)

The AI operation was automatic, but fetching the changed MockAPI data was manual. To make the whole flow automatic, resume the Chapter 8 build schedule for 693_MockAPI_Items (dataset):

  • Scheduled dataset build → Python script fetches MockAPI records → object properties update → updated-object automation runs A2 → CheckResult is committed

The schedule targets the dataset, not the data connection.

1. In Data Lineage, open the build schedule for 693_MockAPI_Items (dataset) and click Unpause if paused.

Chapter 8a screenshot 20

Chapter 8a screenshot 21

Chapter 8a screenshot 22

2. In MockAPI, change existing Id 7 from integer 77 back to 777.

Chapter 8a screenshot 23

3. Wait—do not manually build or run an Action.

4. Verify in Insight that Id 7 shows Integer = 777 and CheckResult = FOUND.

Chapter 8a screenshot 24

Chapter 8a screenshot 25

5. Pause the build schedule afterward.

Chapter 8a screenshot 26

Chapter 8a screenshot 27

Chapter 8a screenshot 28

The end-to-end update test passed

  • Existing object Id 7 now has Integer = 777.
  • - CheckResult changed back to FOUND.
  • The build schedule is now paused, as confirmed by the banner.

Chapter 8a is complete: new objects are handled by the original automation; changes to existing objects’ Text or Integer are handled by the updated-object automation.