Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

CQ 5.5 - pass initiator to sub-workflow (Container)

Avatar

Level 1

Hi, I have a workflow that executes another workflow as a Container step. The problem is that the sub-workflow is executed from under "admin" user, not the one who launched the main workflow. Can I get the sub-workflow executed from under the actual user or pass the user information to the sub-workflow?

Will appreciate your help.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

Yes, the container workflow starts the child workflow as admin because it is started in the back-end, and not directly by the user.

When you start a child process the metadata from the parent process is copied to the child process when it is started, I would add the user information you require (initiator?) to the parent's metadata before starting the child workflow, and use that value in the child workflow.

Will

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi,

Yes, the container workflow starts the child workflow as admin because it is started in the back-end, and not directly by the user.

When you start a child process the metadata from the parent process is copied to the child process when it is started, I would add the user information you require (initiator?) to the parent's metadata before starting the child workflow, and use that value in the child workflow.

Will