Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Run a trigger once instead of foreverForum ↗

Run a trigger once instead of forever

App Development2 posts286 views3 likesLast activity May 2020
ME
meetOP
May 2020

Instead of having a rule in a trigger run forever, is there a way to run it once, i.e., as a one-time query? Eg, gather all contracts of type X and pass them in to a choice and then stop?

CO
cocreature
May 2020

Triggers are always long-running processes. If you want to run something once, DAML Script is probably what you are looking for. You can find documentation and examples for DAML Script at https://docs.daml.com/daml-script/index.html.

← Back to Discussions