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 Details

    • CQDynamicParticipantExecutor

      public CQDynamicParticipantExecutor()
  • Method Details

    • 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(String aResourceName)
      Description copied from interface: DynamicParticipantExecutor
      Returns true if this service can process the specified resource, false otherwise.
      Specified by:
      canExecute in interface DynamicParticipantExecutor
      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: DynamicParticipantExecutor
      Returns the dynamically resolved Principal id
      Specified by:
      getParticipant in interface DynamicParticipantExecutor
      Parameters:
      aResourceName - Resource Name
      workItem - Current workitem
      workflowSession - Workflow session
      metaDataMap - Participant chooser specific arguments can be passed here
      Returns:
      the dynamically resolved Principal id