Class SimulationTriggerExecutor

java.lang.Object
com.codebarrel.automation.rulecomponent.jira.trigger.simulation.SimulationTriggerExecutor
All Implemented Interfaces:
ComponentExecutor, TriggerExecutor

public class SimulationTriggerExecutor extends Object implements TriggerExecutor
  • Constructor Details

    • SimulationTriggerExecutor

      public SimulationTriggerExecutor()
  • Method Details

    • canHandle

      public boolean canHandle(ComponentContext context, ComponentInputs inputs)
      Description copied from interface: TriggerExecutor
      Checks if a trigger can handle the inputs provided. This method should return false if no inputs are available that this component can process. Note that this will stop the rule from executing at that point, so if you want to do nothing in the rule, return true and do checks in the execute method.
      Specified by:
      canHandle in interface TriggerExecutor
      Parameters:
      context - The context to execute this component
      inputs - Inputs needed by the component
      Returns:
      false if this component can't handle the provided inputs.
    • execute

      Description copied from interface: ComponentExecutor
      Executes an action, give the provided context and inputs. Implementations can pick and chose what inputs they wish to handle. Implementations can choose if they want to stop execution of the component chain by returning an appropriate execution reuls. Implementations can also add additional inputs for the next component in the chain.
      Specified by:
      execute in interface ComponentExecutor
      Parameters:
      context - The context to execute this component
      inputs - Inputs needed by the component
      Returns:
      the outputs of this executor (inputs with additional stuff) and what should happen next.