plugins/aem/cloud-service/skills/aem-workflow/workflow-launchers/SKILL.md
Configure and deploy Workflow Launchers that automatically start workflows in response to JCR content changes on AEM as a Cloud Service
npx skillsauth add adobe/skills workflow-launchersInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill teaches you how to configure and deploy Workflow Launchers that automatically start workflows in response to JCR content changes on AEM as a Cloud Service.
/libsA Workflow Launcher (cq:WorkflowLauncher) is a JCR node that registers a JCR event listener. When a node event occurs at a path matching the launcher's glob pattern, node type, and conditions, the Granite Workflow Engine enqueues a workflow start.
The listener is managed by WorkflowLauncherListener (an OSGi service). It reads all active launcher configurations at startup and re-evaluates them when configurations change.
JCR Event (NODE_ADDED / NODE_MODIFIED / NODE_REMOVED)
↓
WorkflowLauncherListener (OSGi EventListener)
↓ matches: glob, nodetype, event type, conditions
Workflow Engine: enqueue WorkflowData
↓
Workflow Instance created at /var/workflow/instances/
| Property | Type | Description |
|---|---|---|
| eventType | Long | 1 = NODE_ADDED, 2 = NODE_MODIFIED, 4 = NODE_REMOVED, 8 = PROPERTY_ADDED, 16 = PROPERTY_CHANGED, 32 = PROPERTY_REMOVED |
| glob | String | Glob pattern matched against the event node path (e.g., /content/dam(/.*)?) |
| nodetype | String | JCR node type the event node must be (e.g., dam:AssetContent) |
| conditions | String[] | Additional JCR property conditions on the event node |
| workflow | String | Runtime path of the workflow model /var/workflow/models/<id> |
| enabled | Boolean | Whether the launcher is active |
| description | String | Human-readable description |
| excludeList | String[] | Workflow model IDs to exclude |
| runModes | String[] | Restrict to specific run modes (e.g., author) |
On Cloud Service, /libs is immutable. Store launcher configurations at:
/conf/global/settings/workflow/launcher/config/<launcher-name>
Maven project location:
ui.content/src/main/content/jcr_root/conf/global/settings/workflow/launcher/config/
my-custom-launcher/
.content.xml
Filter in filter.xml:
<filter root="/conf/global/settings/workflow/launcher/config/my-custom-launcher"/>
Node structure (.content.xml):
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root
xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:cq="http://www.day.com/jcr/cq/1.0"
jcr:primaryType="cq:WorkflowLauncher"
eventType="{Long}1"
glob="/content/dam(/.*)?/jcr:content/renditions/original"
nodetype="nt:file"
workflow="/var/workflow/models/dam/update_asset"
enabled="{Boolean}true"
description="Start DAM update workflow on new original rendition upload"
runModes="[author]"/>
To disable or modify an OOTB launcher (e.g., dam_update_asset_create):
/libs/settings/workflow/launcher/config/dam_update_asset_create to /conf/global/settings/workflow/launcher/config/dam_update_asset_createenabled="{Boolean}false" to disable it)| Launcher | Trigger | Workflow |
|---|---|---|
| dam_update_asset_create | NODE_ADDED on dam:AssetContent under /content/dam | DAM Update Asset |
| dam_update_asset_modify | NODE_MODIFIED on asset properties | DAM Update Asset |
| dam_xmp_writeback | NODE_MODIFIED on rendition | DAM Writeback |
| update_page_version_* | Node events on cq:Page jcr:content | Page Version Create |
To listen for both ADD and MODIFY, combine event types:
eventType="{Long}3" <!-- 1 (ADD) + 2 (MODIFY) = 3 -->
The conditions array lets you add JCR property conditions on the triggering node:
conditions="[property=cq:type,value=publicationevent,type=STRING]"
Condition format: property=<name>,value=<value>,type=<JCR_TYPE> (type is optional, defaults to STRING).
Use runModes to restrict:
runModes="[author]" <!-- only fires on Author -->
runModes="[publish]" <!-- only fires on Publish -->
Omit runModes to fire on all run modes.
/conf/global/settings/workflow/launcher/config/ in CRXDE Lite for your deployed configsWorkflowLauncherListener service propertiescurl -u admin:admin http://localhost:4502/etc/workflow/launcher.json| Reference | What It Covers |
|---|---|
| references/workflow-launchers/launcher-config-reference.md | Full property spec and XML templates |
| references/workflow-launchers/condition-patterns.md | Common condition patterns, glob syntax, event type codes |
| references/workflow-foundation/architecture-overview.md | Granite Workflow Engine overview |
| references/workflow-foundation/cloud-service-guardrails.md | Cloud Service constraints for config paths |
| references/workflow-foundation/jcr-paths-reference.md | Where launchers live in the JCR |
tools
Use the run-workflow MCP to discover, compose, execute, publish, and save Adobe Firefly workflows. TRIGGER when: user asks what actions are available, what the MCP can do, how to process images/video/3D via workflow, wants to build/run/save/publish a workflow, OR pastes any workflow/batch/execution ID. BARE ID (UUID/workflowId/batchId) = INSPECT ONLY — call inspect_run, NEVER run_workflow_submit. ALWAYS call list_actions first for capability/discovery questions. DO NOT TRIGGER for direct Firefly API calls without MCP (use firefly-api-specs).
tools
Run predefined featured workflows via run-workflow MCP. TRIGGER when user names a featured workflow (retargeting, banners at scale, localization, packaging, banner advertising, etc.) or asks to run a known marketing/production workflow. Requires run-workflow MCP. ALWAYS call get_featured_workflow before compose_workflow. DO NOT TRIGGER for custom one-off workflows with no named template — use run-workflow skill.
tools
Migrate an Adobe Commerce App Builder project from the Integration Starter Kit or Checkout Starter Kit to the new App Management approach. Run from the root of the App Builder project to be migrated. Pass --auto to skip confirmation prompts (suitable for CI or batch use) — auto mode prints a summary of all Q&A questions answered with their defaults. Pass --doc-scan-only to scan README.md and env.dist for outdated content without modifying any files. Use when the user wants to migrate an App Builder project from the Integration Starter Kit or Checkout Starter Kit to the App Management approach, or mentions upgrading their Adobe Commerce extension architecture.
development
Add or modify webhook interceptors in an Adobe Commerce app. Use when the user wants to intercept Commerce operations to validate input, append data, or modify behavior — before or after execution. Requires a base app initialized with commerce-app-init.