@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 and Description |
---|
CQDynamicParticipantExecutor() |
Modifier and Type | Method and 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 resolved
Principal id |
void |
unbindParticipantChooser(ParticipantChooser aParticipantChooser) |
void |
unbindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser) |
public void bindParticipantChooser(ParticipantChooser aParticipantChooser)
public void unbindParticipantChooser(ParticipantChooser aParticipantChooser)
public void bindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser)
public void unbindParticipantStepChooser(ParticipantStepChooser aParticipantStepChooser)
public boolean canExecute(java.lang.String aResourceName)
DynamicParticipantExecutor
canExecute
in interface DynamicParticipantExecutor
aResourceName
- the resource identifying the code to execute for this workflow step.public java.lang.String getParticipant(java.lang.String aResourceName, WorkItem workItem, WorkflowSession workflowSession, MetaDataMap metaDataMap)
DynamicParticipantExecutor
Principal
idgetParticipant
in interface DynamicParticipantExecutor
aResourceName
- Resource NameworkItem
- Current workitemworkflowSession
- Workflow sessionmetaDataMap
- Participant chooser specific arguments can be passed herePrincipal
idCopyright © 2010 - 2020 Adobe. All Rights Reserved