DEMO_BATCH_READY Event and let a Job check the batch against a configured size limit. This example exercises the Event filter, Job input mapping and result without external requests or customer data.
Use a test instance. Creating Job templates and Event definitions requires AUTOMATION_ADMIN. Running a saved Event requires AUTOMATION_RUNNER or AUTOMATION_ADMIN. Inspecting the resulting history requires AUTOMATION_READ or AUTOMATION_ADMIN. Choose an active execution account for the Job.
1. Create and test the worker
Create a JavaScript Component named Inspect inventory batch with a visible element named Report. Paste this complete body.Component · Report
Debugger input
2. Create the Job template
In Jobs, create a template named Inspect inventory batch and select the active Component. Use a dedicated Service Account for unattended execution. This worker needs no Database, Storage or Secret access. Keep automatic retries off for the exercise, set a short timeout such as 30 seconds, and keep the response visible in Job History. Set Runtime input to these template defaults and save the template.Job template · Runtime input
3. Configure the Event trigger
In Events, create an active definition named Inventory batch ready.
The message filter selects which occurrences start the Job. Runtime input overlays the template defaults. The worker receives
maxRecords: 10 and keeps reportMode: "summary".
4. Publish and follow one occurrence
Open the Event and choose Run. Enter the message and metadata below in their respective controls. For the Platform API, the same object is the request body forPOST /api/v1/automation/event/{eventId}/run, where the path ID identifies the saved Event definition.
Event publication
- Open this occurrence in Event History. For API publication, use the returned
eventIdfrom the acceptance receipt. When running in the app, use the synthetic correlation ID to identify the occurrence and copy its history ID. - Confirm that Inventory batch ready matched. Open the related Job and record its Job ID.
- Wait for the exact run to reach
FINISHED. Open its output and inspect Report. Through the Platform API, the same result is atoutput.results.ReportonGET /api/v1/automation/job/{jobId}.
Report result
5. Check both failure boundaries
Use Event History to diagnose dispatch and Job History for the result. When introducing writes, use a durable business key before enabling retry or replay. Share synthetic batch IDs, correlation IDs and status when documenting the flow.

