Class BatchWorkflowConfig

  • All Implemented Interfaces:
    com.qfs.snl.workflows.IWorkflowConfig

    public class BatchWorkflowConfig
    extends com.qfs.snl.workflows.impl.WorkflowConfig
    Special Workflow configuration to activate batch processing for workflow executor supporting it.

    In this Sandbox project, BatchEventProcessExecutor supports batch processing and relies on that class for it.

    Author:
    QuartetFS
    • Constructor Detail

      • BatchWorkflowConfig

        public BatchWorkflowConfig​(String name,
                                   String process,
                                   String unitKey)
        Full constructor.
        Parameters:
        name - name of the configuration
        process - id of the Activiti process to execute
        unitKey - plugin key of the workflow unit to instanciate
    • Method Detail

      • doBatchFor

        public BatchWorkflowConfig doBatchFor​(String... actions)
        Activates batch for a series of actions.
        Parameters:
        actions - action types for which one wants batch processing.
        Returns:
        this
      • hasBatchFor

        public boolean hasBatchFor​(String action)
        Gets if batch processing is activated for a given action.
        Parameters:
        action - action to test
        Returns:
        true if the workflow supports batch processing.