Ash FrameworkAF
Ash Framework3y ago
5 replies
lifeofdan

Resource interactions

So my simple question is this, how/can one resource interact with another.

I have a "bank_account" and bank accounts can have "transactions" when a transaction is pending=false, which is set through the update :cleared action, I want to then add or subtract the amount on that transaction from the bank_account balance. See pseudo code in image attached for what I am envisioning.
image.png
Was this page helpful?