Class 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 Detail

      • CQDynamicParticipantExecutor

        public CQDynamicParticipantExecutor()
    • 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 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 java.lang.String getParticipant​(java.lang.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