Hi,
We have a content fragment, and there are multiple content fragments referred to within this content fragment. I have a workflow that runs on the content fragment. Now, when a workflow is triggered on the main content fragment, I need to run the workflow on the main content fragment and also on all the referenced content fragments within it. The workflow involves multiple groups reviewing and approving the content. What is the feasibility of reviewing multiple payload previews within a single workflow for the review/approval process?
TIA.
@EstebanBustamante @arunpatidar
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Multiple payloads are not supported. It can only be one.
If you want to keep the related ones together, Maybe you should try exploring:
Multiple payloads are not supported. It can only be one.
If you want to keep the related ones together, Maybe you should try exploring:
Hi @aanchal-sikka / @AmitVishwakarma
Is there any feature/actual example where I can see on how this Workflow Package works?
Views
Replies
Total Likes
Please refer to following APIs
The ACS Commons WorkflowPackageManager.create() API can be used.
Concept explains here: https://experienceleague.adobe.com/en/docs/experience-manager-65/content/sites/administering/operati...
Views
Replies
Total Likes
Hi @Divya_T13 ,
In Adobe Experience Manager (AEM), the out-of-the-box (OOTB) workflow capabilities do not inherently support the automatic processing of referenced Content Fragments (CFs) within a primary CF.
To achieve the desired functionality, where triggering a workflow on a main CF also initiates workflows on all its referenced CFs, A custom solution is necessary.
You can develop a custom workflow process step that performs the following actions:
Identify Referenced Content Fragments:
Utilize AEM's AssetReferenceSearch API to programmatically search for and identify all CFs referenced within the main CF.
Initiate Workflows on Referenced CFs:
For each referenced CF identified, programmatically start the desired workflow, ensuring that each fragment undergoes the necessary review and approval processes.
Regards,
Views
Replies
Total Likes
One option could be to use a Service User that can impersonate as the initiator & then trigger the new workflows.
Views
Replies
Total Likes
I tried impersonating the service user as the initiator, but it didn't work. I obtained 'admin' user session and impersonated using the admin resolver (since the admin user can always impersonate all users) as mentioned in the link below, and it worked.
Thank you for all your input.
Views
Replies
Total Likes
admin sessions in general are not recommended. There is a config to accept these special cases in 6.5, not sure how acceptable they are on cloud.
For Service user, did you configure the service user as the impersonator and then impersonate via code?
There is No OOTB feature that support multiple workflow
Pros:
Cons:
Hi @Divya_T13
You can only achieve this by using workflow package similar to manage workflow with multi items.
Multiple payloads in a single workflow are not supported out-of-the-box. You can manage referenced content fragments (CFs) by:
1. Using Workflow Packages: Group related CFs into a package and trigger workflows on them.
2. Using Tasks & Projects: Manage related content using projects to handle approval separately.
3. Custom Solution: Develop a custom workflow process step to initiate workflows for referenced CFs using the AssetReferenceSearch API.
Each referenced CF would require separate handling or custom development to review them together.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies