I have three functions that progress an Object-Type through discrete processing stages (NEW > TAGGED > SUMMARY > COMPLETE).
Each function depends on some properties that are modified by the previous stage. Ex: TAGGED adds a “target stock quantity”, and SUMMARY uses that target stock quantity to come up with a distribution plan, etc.
Is it possible for me to execute all of these processing stages within a single function? Calling these sequentially from within a “wrapper” function by default doesn’t have the intended effect because the TAGGED Ontology Edits aren’t actually committed to the Ontology when SUMMARY function runs, so it finds no “target stock quantity”.
This works well using Automate on each sub-Function (like an assembly line) since the Edits are committed between Automate executions, but we’d like a manual “Full Process the entire thing” button for users in the front-end. Is there a way to do this? Some kind of “commit edits early” function, or similar? We’re using the normal Functions/Ontology TypeScript API, but could use the OSDK, if that provides an option.
Cheers,
Graham