AD0-E134 practice question 14 of 15
An AEM developer is assigned a task to design a workflow. The workflow is supposed to collect data from the participant and then determine the reviewer/approver branch to proceed further. Which workflow step should be used by the developer?
Full set: 72 questionsTo design a workflow that collects data from the participant and then determines the reviewer/approver branch to proceed further, the developer should use the Dynamic Participant Step. This workflow step allows for dynamic determination of participants based on the data collected or any other logic implemented in the workflow. Here’s how to implement a Dynamic Participant Step in AEM: Create the Workflow Model: In AEM, navigate to Tools > Workflow > Models. Create a new workflow model or edit an existing one. Add Dynamic Participant Step: Drag and drop the Dynamic Participant Step into your workflow model. Configure the Dynamic Participant Step: Click on the Dynamic Participant Step and configure it by specifying the participant chooser class. This class should implement the logic to determine the next participant.
@Component(service = ParticipantStepChooser.class, property = {
"service.description=Dynamic Participant Chooser"
})
public class CustomParticipantStepChooser implements ParticipantStepChooser {
@Override public String getParticipant(WorkItem workItem, WorkflowSession workflowSession,
MetaDataMap metaDataMap) {
// Custom logic to determine the participant based on workflow data String reviewer = // logic to determine reviewer return reviewer;
}
}
Implement Participant Chooser Logic: The CustomParticipantStepChooser class should contain the logic to determine the next participant based on the workflow data. This can include reading workflow variables, making decisions based on conditions, or any other custom logic. Deploy and Test: Save the workflow model and test it by starting a new workflow instance. Ensure that the dynamic participant determination works as expected. By using the Dynamic Participant Step, you can create flexible workflows that adapt to the data and context, ensuring that the appropriate participants are chosen dynamically.
Reference: Adobe Experience Manager Workflow AEM Dynamic Participant Step
Keep practicing
Take the free AD0-E134 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E134 practice questions
- Question 1A developer needs to create a workflow custom process step in AEM. In a custom process st…
- Question 2An AEM environment is cloned, and the domain and IPs ate changed. What must be reconfigur…
- Question 3A development team is starting a new AEM project that is going to integrate with the Adob…
- Question 4A developer is on an AEM application that is being used to calculate an employee's salary…
- Question 5A developer is working on a project based on core components. The client requests that te…
- Question 6Which practice should be used to push a code fix to make it into the current release cand…
