You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bc2bb6b
Browse filesBrowse the repository at this point in the historyBrowse files
docs(spec): state the notify click-through default in the sourceObject / sourceId / actionUrl describes
A notify that writes none of sourceObject, sourceId and actionUrl links to
the run's trigger record when the run has one; the spec describes and
JSDoc now say so, with the exceptions the executor applies.
Claude-Session: https://claude.ai/code/session_01L6bhgTqqeHSwZYJmApbDCa
Co-authored-by: Claude <noreply@anthropic.com>
docs(spec): the `notify` node's `sourceObject`, `sourceId` and `actionUrl` descriptions now state the click-through default the runtime already applies
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
A `notify` node that writes none of `sourceObject`, `sourceId` and `actionUrl` links to the run's trigger record when the run has one (a record change other than a delete, a time-relative sweep's row, an action started on a record). The `NotifyConfigSchema` descriptions, and the reference page generated from them, said only that the pair takes effect together. They now also say that an explicit pair or an `actionUrl` is kept as written, that a half-written pair is still dropped rather than defaulted, and that a run with no trigger record links nowhere. No key, shape, default or refinement changes.
.describe('Object name of the record the notification links to (writes sys_notification.source_object) — a literal, read as written: a single-brace `{token}` is not resolved here and is refused, as is a CEL value envelope; write the value. Only takes effect together with sourceId — a half-specified click-through target is dropped at execute time, so the inbox never renders a dead link.'),
763
+
.describe('Object name of the record the notification links to (writes sys_notification.source_object) — a literal, read as written: a single-brace `{token}` is not resolved here and is refused, as is a CEL value envelope; write the value. Only takes effect together with sourceId — a half-specified click-through target is dropped at execute time, not defaulted, so the inbox never renders a dead link. When sourceObject, sourceId and actionUrl are all left out, a run started by a record (a record change other than a delete, a time-relative sweep, an action on a record) links to that record, and a run with no trigger record links nowhere; an explicit pair or an actionUrl is kept as written.'),
751
764
/**
752
765
* Click-through target record id — only effective together with
753
-
* `sourceObject`. A `value` slot (#19939, {@link NotifySourceIdSlotSchema}).
766
+
* `sourceObject`; a half-written pair is dropped, never defaulted. A `value`
767
+
* slot (#19939, {@link NotifySourceIdSlotSchema}). Left out together with
768
+
* `sourceObject` and `actionUrl`, the link defaults to the run's trigger
769
+
* record (see "click-through default" above).
754
770
*/
755
771
sourceId: NotifySourceIdSlotSchema.optional()
756
-
.describe('Record id the notification links to (writes sys_notification.source_id) — a string, or a CEL value envelope `{ dialect: \'cel\', source }` evaluated per run to one (`record.id`); a `{…}` template token is refused. Only takes effect together with sourceObject — a half-specified click-through target is dropped at execute time, so the inbox never renders a dead link.'),
772
+
.describe('Record id the notification links to (writes sys_notification.source_id) — a string, or a CEL value envelope `{ dialect: \'cel\', source }` evaluated per run to one (`record.id`); a `{…}` template token is refused. Only takes effect together with sourceObject — a half-specified click-through target is dropped at execute time, not defaulted, so the inbox never renders a dead link. When sourceObject, sourceId and actionUrl are all left out, a run started by a record (a record change other than a delete, a time-relative sweep, an action on a record) links to that record, and a run with no trigger record links nowhere; an explicit pair or an actionUrl is kept as written.'),
757
773
/** User id that caused the event. A literal, read as written (#19939, "notify literals" above). */
.describe('User id that caused the event (writes sys_notification.actor_id) — a literal, read as written: a single-brace `{token}` is not resolved here and is refused, as is a CEL value envelope; write the value'),
760
776
/**
761
-
* Explicit click-through URL; overrides the sourceObject/sourceId link. A
762
-
* TEXT slot (#19939): rendered per run with `{{ }}` holes, like `title`; a
763
-
* single-brace `{token}` is refused by the `superRefine` below.
777
+
* Explicit click-through URL; overrides the sourceObject/sourceId link, and
778
+
* written alone keeps the trigger-record default from applying (see
779
+
* "click-through default" above). A TEXT slot (#19939): rendered per run with
780
+
* `{{ }}` holes, like `title`; a single-brace `{token}` is refused by the
781
+
* `superRefine` below.
764
782
*/
765
783
actionUrl: z.string().optional()
766
-
.describe('Explicit click-through URL, rendered per run with `{{ }}` holes like `title` (`/crm_case/{{ record.id }}`); a single-brace `{token}` is refused. Overrides the link synthesized from sourceObject/sourceId.'),
784
+
.describe('Explicit click-through URL, rendered per run with `{{ }}` holes like `title` (`/crm_case/{{ record.id }}`); a single-brace `{token}` is refused. Overrides the link synthesized from sourceObject/sourceId, and written alone keeps the notification from linking to the record that started the run.'),
767
785
/**
768
786
* Extra values merged into the notification payload — literals, read as
0 commit comments