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 void
bindParticipantChooser(ParticipantChooser aParticipantChooser)
void
bindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser)
boolean
canExecute(java.lang.String aResourceName)
Returns true if this service can process the specified resource, false otherwise.java.lang.String
getParticipant(java.lang.String aResourceName, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
Returns the dynamically resolvedPrincipal
idvoid
unbindParticipantChooser(ParticipantChooser aParticipantChooser)
void
unbindParticipantStepChooser(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:DynamicParticipantExecutor
Returns true if this service can process the specified resource, false otherwise.- Specified by:
canExecute
in 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:DynamicParticipantExecutor
Returns the dynamically resolvedPrincipal
id- Specified by:
getParticipant
in interfaceDynamicParticipantExecutor
- Parameters:
aResourceName
- Resource NameworkItem
- Current workitemworkflowSession
- Workflow sessionmetaDataMap
- Participant chooser specific arguments can be passed here- Returns:
- the dynamically resolved
Principal
id
-
-