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
The following workflow models are commonly used in AEM:
Workflow ID
Description
Use Case
request_for_activation
Publish/activate pages
Use to publish pages to the publish environment
request_for_deactivation
Unpublish/deactivate pages
Use to unpublish pages from the publish environment
request_for_deletion
Delete pages
Use to delete pages (with deactivation first)
request_for_deletion_without_deactivation
Delete pages without unpublishing
Use to delete pages without unpublishing first
dam/update_asset
Update DAM assets
Use to update digital assets
dam/dam-update-language-copy
Update language copies of assets
Use to update translated asset versions
dam/dam-create-language-copy
Create language copies of assets
Use to create translated asset versions
wcm-translation/translate-language-copy
Translate language copies
Use for page translation workflows
wcm-translation/create_language_copy
Create language copies
Use to create translated page versions
wcm-translation/prepare_translation_project
Prepare translation project
Use to set up translation projects
wcm-translation/sync_translation_job
Sync translation job
Use to synchronize translation jobs
wcm-translation/update_language_copy
Update language copy
Use to update translated page versions
scheduled_activation
Scheduled activation
Use for scheduled page publishing
scheduled_deactivation
Scheduled deactivation
Use for scheduled page unpublishing
Example: Publishing a page using workflow
// Start activation workflowstartWorkflow({modelId: "request_for_activation",payload: "/content/site/en/page",payloadType: "JCR_PATH"})// Check inbox for work itemsgetInboxItems()// Complete the work itemcompleteWorkItem({workItemPath: "/var/workflow/instances/.../workItems/...",comment: "Approved for publication"})
Utilities
Method
Description
Parameters
getNodeContent
Get raw JCR node properties at a path and depth
path, depth, verbosity
listChildren
List child nodes
path, verbosity
Content Fragments
Method
Description
Parameters
getContentFragment
Get a content fragment with all fields, variations, and metadata
path
listContentFragments
List content fragments under a path with optional model filter
path, model, limit, offset
manageContentFragment
Create, update, or delete a content fragment
action, fragmentPath, parentPath, title, name, model, fields, description, force
manageContentFragmentVariation
Create, update, or delete a variation within a content fragment