Skip to content

[flows] Convert date-equality record-change flows to scheduled cron (interim for framework#1874) #49

Description

@xuyushun441-sys

Several flows use record_change + a date-equality condition (e.g. end_date == daysFromNow(60)) which only fires if the record happens to be edited on that exact day — so they don't run unattended:

  • contracts renewal_alert (T-60/30/7), renewal_draft
  • hr document_expiring_soon
  • procurement po_overdue
  • compliance evidence_expiring / evidence_auto_expire

Ask (interim, doesn't need the platform): rewrite as type:'schedule' cron flows (project daily_ai_risk_assessment is the template) — daily run + range query + loop. Long-term a declarative time-relative trigger is framework#1874.

Follow-up from the 9-template optimization + 9.5.1 runtime-testing pass. Platform-level gaps are tracked separately in objectstack-ai/framework (#1867–#1877).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions