Skip to content

JNY-PFM-INT-006Publish an automation for a registered business event

Markdown

JNY-PFM-INT-006

Publish an automation for a registered business event

Markdown
  • DocumentDraft
  • Product intentConfirmed
  • ImplementationPartially observed

KindJourneyProduct areaPlatformModuleIntegration access, customer extensions and shared workflow configurationRevision1End-to-endNone

Read atservices-platform ad3f6a65

The Formal Contract

The narrative above explains; the sections below are authoritative — the rules, scenarios and tests this document binds.

Goal
Configure a task and an email reaction to an overdue-invoice event and inspect the shared run list.
Intent sources
services-platform:docs/proposals/application-processes-and-workflow-actions/14-decisions.md#D-10

Steps

#SurfaceActionCapabilityExpectedProvenance
1listWorkflowTriggerPointsList the host’s available timers and its registered event trigger.CAP-PFM-INT-018The listing includes host timers, the event trigger and its registered event.test
services-platform:modules/workflow-actions/tests/e2e/workflow-actions.e2e.spec.js#lists the automation host’s points: the timers of every host, `event`, and the registered event
2listWorkflowActionTypesInspect the action types available for this trigger.CAP-PFM-INT-018Only configurable, enabled action types appear.test
services-platform:modules/workflow-actions/tests/e2e/workflow-actions.e2e.spec.js#lists the types configurable at a trigger, the switched-off one left out
3createAutomationRuleCreate an automation for the event.CAP-PFM-INT-020A draft is associated with the application that owns the event.test
services-platform:modules/workflow-actions/tests/e2e/workflow-actions.e2e.spec.js#creates it as a draft, owned by its event’s application
4saveAutomationRuleDraftSave a condition and the two actions in the draft.CAP-PFM-INT-020The editable draft retains the configuration.test
5publishAutomationRulePublish the automation.CAP-PFM-INT-020The rule becomes enabled with a frozen first current version.test
services-platform:modules/workflow-actions/tests/e2e/workflow-actions.e2e.spec.js#publishes it, enabled, with the version as its current one
6listWorkflowActionRunsInspect the shared run list.CAP-PFM-INT-020Runs are visible across applications when host views supply them; without those views the list is empty.test
services-platform:modules/workflow-actions/tests/e2e/workflow-actions.e2e.spec.js#answers the tenant’s runs as a page, empty while no host publishes a view

Alternate and Failure Paths

PathFrom stepConditionPath takenOutcomeProvenance
failure5No application registers the selected eventReject publication and identify the missing registrationLeave the draft editabletest
services-platform:modules/workflow-actions/tests/e2e/workflow-actions.e2e.spec.js#refuses a publish of an event no application registers, naming the problem (400)

Assertions

IdStatementProvenance
01Publication requires eligible actions and the permissions their types require.test

End-to-end policy: none: Service acceptance covers automation configuration because no automation screen exists in scope. A connected host event run requires separate evidence.

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.