Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

workflow-launchers

БесплатноБез исполняемых скриптовНе проверен

Configure and deploy Workflow Launchers that automatically start workflows in response to JCR content changes on AEM as a Cloud Service

adobeот adobe★ 342 звезды на GitHub

Об этом скилле

Workflow Launchers Skill — AEM as a Cloud Service

Purpose

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.

When to Use This Skill

  • A workflow must start automatically when an asset is uploaded to DAM
  • A review workflow should trigger whenever an author modifies content under a specific path
  • You need to replicate or replace an OOTB launcher behavior without editing /libs
  • You want to enable, disable, or restrict a launcher to specific run modes

Core Concept: What Is a Workflow Launcher?

A 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.

Architecture at a Glance

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/

Launcher Configuration Properties

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)

Deploying a Custom Launcher on Cloud Service

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]"/>

Overlaying an OOTB Launcher

To disable or modify an OOTB launcher (e.g., dam_update_asset_create):

  1. Copy the node from /libs/settings/workflow/launcher/config/dam_update_asset_create to /conf/global/settings/workflow/launcher/config/dam_update_asset_create
  2. Modify the property (e.g., set enabled="{Boolean}false" to disable it)
  3. Deploy as a content package via Cloud Manager

Common OOTB Launchers (Cloud Service)

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

Event Type Combinations

To listen for both ADD and MODIFY, combine event types:

eventType="{Long}3"  <!-- 1 (ADD) + 2 (MODIFY) = 3 -->

Where-Clause Conditions

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).

Disabling a Launcher for a Run Mode

Use runModes to restrict:

runModes="[author]"   <!-- only fires on Author -->
runModes="[publish]"  <!-- only fires on Publish -->

Omit runModes to fire on all run modes.

Debugging Launchers

  • Tools → Workflow → Launchers UI — lists all active launchers, you can enable/disable interactively
  • Check /conf/global/settings/workflow/launcher/config/ in CRXDE Lite for your deployed configs
  • Check OSGi console → WorkflowLauncherListener se
Полный SKILL.md на GitHub

Установить workflow-launchers в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/workflow-foundation/README.mdreferences/workflow-foundation/api-reference.mdreferences/workflow-foundation/architecture-overview.mdreferences/workflow-foundation/cloud-service-guardrails.mdreferences/workflow-foundation/jcr-paths-reference.mdreferences/workflow-foundation/quick-start-guide.mdreferences/workflow-launchers/condition-patterns.mdreferences/workflow-launchers/launcher-config-reference.md

FAQ

Что делает скилл workflow-launchers?

Configure and deploy Workflow Launchers that automatically start workflows in response to JCR content changes on AEM as a Cloud Service

Как установить скилл workflow-launchers?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл workflow-launchers запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить workflow-launchers с