Class CQDynamicParticipantExecutor
java.lang.Object
com.day.cq.workflow.compatibility.CQDynamicParticipantExecutor
- All Implemented Interfaces:
DynamicParticipantExecutor
@Property(name="service.description",
value="%cq.workflow.compat.executor.dynamicparticipant.description")
@Reference(name="ParticipantChooser",cardinality=OPTIONAL_MULTIPLE,referenceInterface=ParticipantChooser.class,policy=DYNAMIC) @Reference(name="ParticipantStepChooser",cardinality=OPTIONAL_MULTIPLE,referenceInterface=ParticipantStepChooser.class,policy=DYNAMIC)
@Service
public class CQDynamicParticipantExecutor
extends Object
implements DynamicParticipantExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbindParticipantChooser(ParticipantChooser aParticipantChooser) voidbindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser) booleancanExecute(String aResourceName) Returns true if this service can process the specified resource, false otherwise.getParticipant(String aResourceName, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) Returns the dynamically resolvedPrincipalidvoidunbindParticipantChooser(ParticipantChooser aParticipantChooser) voidunbindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser)
-
Constructor Details
-
CQDynamicParticipantExecutor
public CQDynamicParticipantExecutor()
-
-
Method Details
-
bindParticipantChooser
-
unbindParticipantChooser
-
bindParticipantStepChooser
-
unbindParticipantStepChooser
-
canExecute
Description copied from interface:DynamicParticipantExecutorReturns true if this service can process the specified resource, false otherwise.- Specified by:
canExecutein interfaceDynamicParticipantExecutor- Parameters:
aResourceName- the resource identifying the code to execute for this workflow step.- Returns:
- true if this service can process the specified resource, false otherwise.
-
getParticipant
public String getParticipant(String aResourceName, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap) Description copied from interface:DynamicParticipantExecutorReturns the dynamically resolvedPrincipalid- Specified by:
getParticipantin interfaceDynamicParticipantExecutor- Parameters:
aResourceName- Resource NameworkItem- Current workitemworkflowSession- Workflow sessionmetaDataMap- Participant chooser specific arguments can be passed here- Returns:
- the dynamically resolved
Principalid
-