DECCF · Cash Flow Modeler and Calculator

React to events and triggers

Use an event to apply actions when a condition becomes true or on selected dates.

An unscheduled condition fires on its false-to-true transition. With schedule, the event checks the condition only in scheduled periods. Supported actions are actions.setState, actions.setField, actions.activate, and actions.deactivate.

An activation action changes whether a cashflow is active for later calculation steps. Events follow the engine's period order; they cannot change periods that have already been calculated.

See the API overview for validation and calculation order.

Schedule a flow after another flow

Use trigger() when a cashflow should start a delayed booking. Each account has its own type and category. Here, half the rent is booked to cash and half to receivables. After 30 days, the receivable is settled into cash.

The trigger carries an immutable snapshot. Later changes to the source flow do not change a payment already scheduled from that occurrence. Posting rows inherit their categories from the target accounts.