AD0-E134 practice question 11 of 15

A developer needs to create a dynamic participant step where the participant is selected automatically at run time. The developer decides to develop an OSGi service, which needs to implement the com.day.cq.workflow.exec.ParticipantStepChooser interface. Which method should the developer implement from the com.day.cq.workflow.exec.ParticipantStepChooser interface?

Full set: 72 questions
Answer options
A: String getParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
B: void getParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
C: String getDynamicParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap) Correct answer
D: void getDynamicParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
Correct Answer:
C. String getDynamicParticipant(Workltem workltem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
Explanation

The com.day.cq.workflow.exec.ParticipantStepChooser interface is intended for implementations that will define the participant dynamically. This interface replaces the deprecated com.day.cq.workflow.exec.ParticipantChooser interface. The method getDynamicParticipant returns the dynamically resolved Principal id based on the work item, workflow session and metadata map parameters. Reference: https://developer.adobe.com/experience-manager/referencematerials/cloud-service/javadoc/com/day/cq/workflow/exec/ParticipantStepChooser.html

Scroll to Top