Flows › DomEngine e0dcc2ac7

cron event-days done

· 55 ms · specs: Spec:events-days, Spec:events-notify, Spec:events-onsite, Spec:events-programme, Spec:events-registrations, Spec:events, Story:events-flows, Story:events-samples, Settings:Init

JSON
Resulting value (payload)
{
  "daysLeft": 37,
  "reminded": 8,
  "volunteers": 0
}
Trace
msgevents.daily(event="northconf")line 1
rulerule events.daily (line 8)line 8
msgdom.find(cls="Event", key="northconf")line 9
tooldom.find -> {_id: "6ac46c585896b16142c06fc2", assetRef: {inv: "col", col: "Event", category: "Event", key: "northconf"}, id: "northconf", name: "NorthConf 2026", venue: "harbourside", starts: "2026-11-12", ends: …line 9
vale = {_id: "6ac46c585896b16142c06fc2", assetRef: {inv: "col", col: "Event", category: "Event", key: "northconf"}, id: "northconf", name: "NorthConf 2026", venue: "harbourside", starts: "2026-11-12", ends: …line 9
valdaysLeft = 37.0line 10
msgdom.list(cls="Registration")line 11
tooldom.list -> {total: 40, class: "Registration", data: [{_id: "6ac46c585896b16142c0701b", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r01"}, id: "r01", attendee: "a01", ticketType: "…line 11
valunpaid = [{_id: "6ac46c585896b16142c07027", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r04"}, id: "r04", attendee: "a04", ticketType: "tt-full", status: "pending"}, {_id: "6ac4…line 11
msgevents.remind(id="r04")line 12
rulerule events.remind (line 17)line 17
msgdom.find(cls="Registration", key="r04")line 18
tooldom.find -> {_id: "6ac46c585896b16142c07027", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r04"}, id: "r04", attendee: "a04", ticketType: "tt-full", status: "pending"}line 18
valr = {_id: "6ac46c585896b16142c07027", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r04"}, id: "r04", attendee: "a04", ticketType: "tt-full", status: "pending"}line 18
msgdom.find(cls="Attendee", key="a04")line 19
tooldom.find -> {_id: "6ac46c585896b16142c06feb", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a04"}, id: "a04", name: "Dina Brun", email: "dina.brun@example.com"}line 19
vala = {_id: "6ac46c585896b16142c06feb", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a04"}, id: "a04", name: "Dina Brun", email: "dina.brun@example.com"}line 19
msgevents.notify(to="dina.brun@example.com", text="Dina Brun, your registration isn't paid yet: pay to keep your seat.")line 20
rulerule events.notify (line 8)line 8
msgdom.list(cls="Message")line 9
tooldom.list -> {total: 0, class: "Message", data: []}line 9
valn = 0line 9
msgdom.upsert(cls="Message", entity={id: "m1", to: "dina.brun@example.com", text: "Dina Brun, your registration isn't paid yet: pay to keep your seat.", at: "2026-10-06T08:00:16.986Z"})line 10
tooldom.upsert -> {_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, your registration isn't paid yet: pay…line 10
valpayload = {_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, your registration isn't paid yet: pay…line 10
valpayload = {_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, your registration isn't paid yet: pay…line 20
msgevents.remind(id="r09")line 12
rulerule events.remind (line 17)line 17
msgdom.find(cls="Registration", key="r09")line 18
tooldom.find -> {_id: "6ac46c585896b16142c07035", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r09"}, id: "r09", attendee: "a09", ticketType: "tt-full", status: "pending"}line 18
valr = {_id: "6ac46c585896b16142c07035", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r09"}, id: "r09", attendee: "a09", ticketType: "tt-full", status: "pending"}line 18
msgdom.find(cls="Attendee", key="a09")line 19
tooldom.find -> {_id: "6ac46c585896b16142c06ff0", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a09"}, id: "a09", name: "Iris Adams", email: "iris.adams@example.com"}line 19
vala = {_id: "6ac46c585896b16142c06ff0", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a09"}, id: "a09", name: "Iris Adams", email: "iris.adams@example.com"}line 19
msgevents.notify(to="iris.adams@example.com", text="Iris Adams, your registration isn't paid yet: pay to keep your seat.")line 20
rulerule events.notify (line 8)line 8
msgdom.list(cls="Message")line 9
tooldom.list -> {total: 1, class: "Message", data: [{_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, y…line 9
valn = 1line 9
msgdom.upsert(cls="Message", entity={id: "m2", to: "iris.adams@example.com", text: "Iris Adams, your registration isn't paid yet: pay to keep your seat.", at: "2026-10-06T08:00:16.987Z"})line 10
tooldom.upsert -> {_id: "6ac4aa905896b16142c07233", assetRef: {inv: "col", col: "Message", category: "Message", key: "m2"}, id: "m2", to: "iris.adams@example.com", text: "Iris Adams, your registration isn't paid yet: p…line 10
valpayload = {_id: "6ac4aa905896b16142c07233", assetRef: {inv: "col", col: "Message", category: "Message", key: "m2"}, id: "m2", to: "iris.adams@example.com", text: "Iris Adams, your registration isn't paid yet: p…line 10
valpayload = {_id: "6ac4aa905896b16142c07233", assetRef: {inv: "col", col: "Message", category: "Message", key: "m2"}, id: "m2", to: "iris.adams@example.com", text: "Iris Adams, your registration isn't paid yet: p…line 20
msgevents.remind(id="r14")line 12
rulerule events.remind (line 17)line 17
msgdom.find(cls="Registration", key="r14")line 18
tooldom.find -> {_id: "6ac46c585896b16142c07043", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r14"}, id: "r14", attendee: "a14", ticketType: "tt-full", status: "pending"}line 18
valr = {_id: "6ac46c585896b16142c07043", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r14"}, id: "r14", attendee: "a14", ticketType: "tt-full", status: "pending"}line 18
msgdom.find(cls="Attendee", key="a14")line 19
tooldom.find -> {_id: "6ac46c585896b16142c06ff5", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a14"}, id: "a14", name: "Nia Brun", email: "nia.brun@example.com"}line 19
vala = {_id: "6ac46c585896b16142c06ff5", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a14"}, id: "a14", name: "Nia Brun", email: "nia.brun@example.com"}line 19
msgevents.notify(to="nia.brun@example.com", text="Nia Brun, your registration isn't paid yet: pay to keep your seat.")line 20
rulerule events.notify (line 8)line 8
msgdom.list(cls="Message")line 9
tooldom.list -> {total: 2, class: "Message", data: [{_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, y…line 9
valn = 2line 9
msgdom.upsert(cls="Message", entity={id: "m3", to: "nia.brun@example.com", text: "Nia Brun, your registration isn't paid yet: pay to keep your seat.", at: "2026-10-06T08:00:16.988Z"})line 10
tooldom.upsert -> {_id: "6ac4aa905896b16142c07234", assetRef: {inv: "col", col: "Message", category: "Message", key: "m3"}, id: "m3", to: "nia.brun@example.com", text: "Nia Brun, your registration isn't paid yet: pay t…line 10
valpayload = {_id: "6ac4aa905896b16142c07234", assetRef: {inv: "col", col: "Message", category: "Message", key: "m3"}, id: "m3", to: "nia.brun@example.com", text: "Nia Brun, your registration isn't paid yet: pay t…line 10
valpayload = {_id: "6ac4aa905896b16142c07234", assetRef: {inv: "col", col: "Message", category: "Message", key: "m3"}, id: "m3", to: "nia.brun@example.com", text: "Nia Brun, your registration isn't paid yet: pay t…line 20
msgevents.remind(id="r19")line 12
rulerule events.remind (line 17)line 17
msgdom.find(cls="Registration", key="r19")line 18
tooldom.find -> {_id: "6ac46c585896b16142c07051", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r19"}, id: "r19", attendee: "a19", ticketType: "tt-full", status: "pending"}line 18
valr = {_id: "6ac46c585896b16142c07051", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r19"}, id: "r19", attendee: "a19", ticketType: "tt-full", status: "pending"}line 18
msgdom.find(cls="Attendee", key="a19")line 19
tooldom.find -> {_id: "6ac46c585896b16142c06ffa", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a19"}, id: "a19", name: "Sven Adams", email: "sven.adams@example.com"}line 19
vala = {_id: "6ac46c585896b16142c06ffa", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a19"}, id: "a19", name: "Sven Adams", email: "sven.adams@example.com"}line 19
msgevents.notify(to="sven.adams@example.com", text="Sven Adams, your registration isn't paid yet: pay to keep your seat.")line 20
rulerule events.notify (line 8)line 8
msgdom.list(cls="Message")line 9
tooldom.list -> {total: 3, class: "Message", data: [{_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, y…line 9
valn = 3line 9
msgdom.upsert(cls="Message", entity={id: "m4", to: "sven.adams@example.com", text: "Sven Adams, your registration isn't paid yet: pay to keep your seat.", at: "2026-10-06T08:00:16.989Z"})line 10
tooldom.upsert -> {_id: "6ac4aa905896b16142c07235", assetRef: {inv: "col", col: "Message", category: "Message", key: "m4"}, id: "m4", to: "sven.adams@example.com", text: "Sven Adams, your registration isn't paid yet: p…line 10
valpayload = {_id: "6ac4aa905896b16142c07235", assetRef: {inv: "col", col: "Message", category: "Message", key: "m4"}, id: "m4", to: "sven.adams@example.com", text: "Sven Adams, your registration isn't paid yet: p…line 10
valpayload = {_id: "6ac4aa905896b16142c07235", assetRef: {inv: "col", col: "Message", category: "Message", key: "m4"}, id: "m4", to: "sven.adams@example.com", text: "Sven Adams, your registration isn't paid yet: p…line 20
msgevents.remind(id="r24")line 12
rulerule events.remind (line 17)line 17
msgdom.find(cls="Registration", key="r24")line 18
tooldom.find -> {_id: "6ac46c585896b16142c0705f", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r24"}, id: "r24", attendee: "a24", ticketType: "tt-full", status: "pending"}line 18
valr = {_id: "6ac46c585896b16142c0705f", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r24"}, id: "r24", attendee: "a24", ticketType: "tt-full", status: "pending"}line 18
msgdom.find(cls="Attendee", key="a24")line 19
tooldom.find -> {_id: "6ac46c585896b16142c06fff", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a24"}, id: "a24", name: "Dina Diaz", email: "dina.diaz@example.com"}line 19
vala = {_id: "6ac46c585896b16142c06fff", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a24"}, id: "a24", name: "Dina Diaz", email: "dina.diaz@example.com"}line 19
msgevents.notify(to="dina.diaz@example.com", text="Dina Diaz, your registration isn't paid yet: pay to keep your seat.")line 20
rulerule events.notify (line 8)line 8
msgdom.list(cls="Message")line 9
tooldom.list -> {total: 4, class: "Message", data: [{_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, y…line 9
valn = 4line 9
msgdom.upsert(cls="Message", entity={id: "m5", to: "dina.diaz@example.com", text: "Dina Diaz, your registration isn't paid yet: pay to keep your seat.", at: "2026-10-06T08:00:16.990Z"})line 10
tooldom.upsert -> {_id: "6ac4aa905896b16142c07236", assetRef: {inv: "col", col: "Message", category: "Message", key: "m5"}, id: "m5", to: "dina.diaz@example.com", text: "Dina Diaz, your registration isn't paid yet: pay…line 10
valpayload = {_id: "6ac4aa905896b16142c07236", assetRef: {inv: "col", col: "Message", category: "Message", key: "m5"}, id: "m5", to: "dina.diaz@example.com", text: "Dina Diaz, your registration isn't paid yet: pay…line 10
valpayload = {_id: "6ac4aa905896b16142c07236", assetRef: {inv: "col", col: "Message", category: "Message", key: "m5"}, id: "m5", to: "dina.diaz@example.com", text: "Dina Diaz, your registration isn't paid yet: pay…line 20
msgevents.remind(id="r29")line 12
rulerule events.remind (line 17)line 17
msgdom.find(cls="Registration", key="r29")line 18
tooldom.find -> {_id: "6ac46c585896b16142c0706d", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r29"}, id: "r29", attendee: "a29", ticketType: "tt-day", status: "pending"}line 18
valr = {_id: "6ac46c585896b16142c0706d", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r29"}, id: "r29", attendee: "a29", ticketType: "tt-day", status: "pending"}line 18
msgdom.find(cls="Attendee", key="a29")line 19
tooldom.find -> {_id: "6ac46c585896b16142c07004", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a29"}, id: "a29", name: "Iris Costa", email: "iris.costa@example.com"}line 19
vala = {_id: "6ac46c585896b16142c07004", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a29"}, id: "a29", name: "Iris Costa", email: "iris.costa@example.com"}line 19
msgevents.notify(to="iris.costa@example.com", text="Iris Costa, your registration isn't paid yet: pay to keep your seat.")line 20
rulerule events.notify (line 8)line 8
msgdom.list(cls="Message")line 9
tooldom.list -> {total: 5, class: "Message", data: [{_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, y…line 9
valn = 5line 9
msgdom.upsert(cls="Message", entity={id: "m6", to: "iris.costa@example.com", text: "Iris Costa, your registration isn't paid yet: pay to keep your seat.", at: "2026-10-06T08:00:16.991Z"})line 10
tooldom.upsert -> {_id: "6ac4aa905896b16142c07237", assetRef: {inv: "col", col: "Message", category: "Message", key: "m6"}, id: "m6", to: "iris.costa@example.com", text: "Iris Costa, your registration isn't paid yet: p…line 10
valpayload = {_id: "6ac4aa905896b16142c07237", assetRef: {inv: "col", col: "Message", category: "Message", key: "m6"}, id: "m6", to: "iris.costa@example.com", text: "Iris Costa, your registration isn't paid yet: p…line 10
valpayload = {_id: "6ac4aa905896b16142c07237", assetRef: {inv: "col", col: "Message", category: "Message", key: "m6"}, id: "m6", to: "iris.costa@example.com", text: "Iris Costa, your registration isn't paid yet: p…line 20
msgevents.remind(id="r34")line 12
rulerule events.remind (line 17)line 17
msgdom.find(cls="Registration", key="r34")line 18
tooldom.find -> {_id: "6ac46c585896b16142c0707b", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r34"}, id: "r34", attendee: "a34", ticketType: "tt-work", status: "pending"}line 18
valr = {_id: "6ac46c585896b16142c0707b", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r34"}, id: "r34", attendee: "a34", ticketType: "tt-work", status: "pending"}line 18
msgdom.find(cls="Attendee", key="a34")line 19
tooldom.find -> {_id: "6ac46c585896b16142c07009", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a34"}, id: "a34", name: "Nia Diaz", email: "nia.diaz@example.com"}line 19
vala = {_id: "6ac46c585896b16142c07009", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a34"}, id: "a34", name: "Nia Diaz", email: "nia.diaz@example.com"}line 19
msgevents.notify(to="nia.diaz@example.com", text="Nia Diaz, your registration isn't paid yet: pay to keep your seat.")line 20
rulerule events.notify (line 8)line 8
msgdom.list(cls="Message")line 9
tooldom.list -> {total: 6, class: "Message", data: [{_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, y…line 9
valn = 6line 9
msgdom.upsert(cls="Message", entity={id: "m7", to: "nia.diaz@example.com", text: "Nia Diaz, your registration isn't paid yet: pay to keep your seat.", at: "2026-10-06T08:00:16.992Z"})line 10
tooldom.upsert -> {_id: "6ac4aa905896b16142c07238", assetRef: {inv: "col", col: "Message", category: "Message", key: "m7"}, id: "m7", to: "nia.diaz@example.com", text: "Nia Diaz, your registration isn't paid yet: pay t…line 10
valpayload = {_id: "6ac4aa905896b16142c07238", assetRef: {inv: "col", col: "Message", category: "Message", key: "m7"}, id: "m7", to: "nia.diaz@example.com", text: "Nia Diaz, your registration isn't paid yet: pay t…line 10
valpayload = {_id: "6ac4aa905896b16142c07238", assetRef: {inv: "col", col: "Message", category: "Message", key: "m7"}, id: "m7", to: "nia.diaz@example.com", text: "Nia Diaz, your registration isn't paid yet: pay t…line 20
msgevents.remind(id="r39")line 12
rulerule events.remind (line 17)line 17
msgdom.find(cls="Registration", key="r39")line 18
tooldom.find -> {_id: "6ac46c585896b16142c07089", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r39"}, id: "r39", attendee: "a39", ticketType: "tt-work", status: "pending"}line 18
valr = {_id: "6ac46c585896b16142c07089", assetRef: {inv: "col", col: "Registration", category: "Registration", key: "r39"}, id: "r39", attendee: "a39", ticketType: "tt-work", status: "pending"}line 18
msgdom.find(cls="Attendee", key="a39")line 19
tooldom.find -> {_id: "6ac46c585896b16142c0700e", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a39"}, id: "a39", name: "Sven Costa", email: "sven.costa@example.com"}line 19
vala = {_id: "6ac46c585896b16142c0700e", assetRef: {inv: "col", col: "Attendee", category: "Attendee", key: "a39"}, id: "a39", name: "Sven Costa", email: "sven.costa@example.com"}line 19
msgevents.notify(to="sven.costa@example.com", text="Sven Costa, your registration isn't paid yet: pay to keep your seat.")line 20
rulerule events.notify (line 8)line 8
msgdom.list(cls="Message")line 9
tooldom.list -> {total: 7, class: "Message", data: [{_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, y…line 9
valn = 7line 9
msgdom.upsert(cls="Message", entity={id: "m8", to: "sven.costa@example.com", text: "Sven Costa, your registration isn't paid yet: pay to keep your seat.", at: "2026-10-06T08:00:16.993Z"})line 10
tooldom.upsert -> {_id: "6ac4aa905896b16142c07239", assetRef: {inv: "col", col: "Message", category: "Message", key: "m8"}, id: "m8", to: "sven.costa@example.com", text: "Sven Costa, your registration isn't paid yet: p…line 10
valpayload = {_id: "6ac4aa905896b16142c07239", assetRef: {inv: "col", col: "Message", category: "Message", key: "m8"}, id: "m8", to: "sven.costa@example.com", text: "Sven Costa, your registration isn't paid yet: p…line 10
valpayload = {_id: "6ac4aa905896b16142c07239", assetRef: {inv: "col", col: "Message", category: "Message", key: "m8"}, id: "m8", to: "sven.costa@example.com", text: "Sven Costa, your registration isn't paid yet: p…line 20
valreminded = [{_id: "6ac4aa905896b16142c07232", assetRef: {inv: "col", col: "Message", category: "Message", key: "m1"}, id: "m1", to: "dina.brun@example.com", text: "Dina Brun, your registration isn't paid yet: pa…line 12
valshifts = []line 13
valpayload = {daysLeft: 37.0, reminded: 8, volunteers: 0}line 14
Story syntax tree
$send events.daily (event = "northconf")
{
  "src": "$send events.daily (event = \"northconf\")",
  "k": "step",
  "stmt": {
    "k": "send",
    "msg": "events.daily",
    "args": [
      {
        "name": "event",
        "e": {
          "k": "str",
          "parts": [
            "northconf"
          ]
        }
      }
    ]
  }
}