Refer to State in YAML

I believe what you’re looking for can be achieved through shared state persistence.

Here is the official documentation, and here is a usage example.