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 java.lang.Object implements DynamicParticipantExecutor
-
-
Constructor Summary
Constructors Constructor Description CQDynamicParticipantExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindParticipantChooser(ParticipantChooser aParticipantChooser)voidbindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser)booleancanExecute(java.lang.String aResourceName)Returns true if this service can process the specified resource, false otherwise.java.lang.StringgetParticipant(java.lang.String aResourceName, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap)Returns the dynamically resolvedPrincipalidvoidunbindParticipantChooser(ParticipantChooser aParticipantChooser)voidunbindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser)
-
-
-
Method Detail
-
bindParticipantChooser
public void bindParticipantChooser(ParticipantChooser aParticipantChooser)
-
unbindParticipantChooser
public void unbindParticipantChooser(ParticipantChooser aParticipantChooser)
-
bindParticipantStepChooser
public void bindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser)
-
unbindParticipantStepChooser
public void unbindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser)
-
canExecute
public boolean canExecute(java.lang.String aResourceName)
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 java.lang.String getParticipant(java.lang.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
-
-