Interface TriggerExecutor<T extends ComponentInputs>

All Superinterfaces:
ComponentExecutor<T>
All Known Implementing Classes:
BaseIssueLinkTriggerExecutor, BaseSprintTriggerExecutor, BaseVersionTriggerExecutor, BranchCreatedTriggerExecutor, BranchTriggerExecutor, CommitCreatedTriggerExecutor, DevopsEventTriggerExecutor, FieldChangedTriggerExecutor, IncomingWebhookTriggerExecutor, IssueAssignedTriggerExecutor, IssueCommentedTriggerExecutor, IssueEventTriggerExecutor, IssueLinkCreatedTriggerExecutor, IssueLinkDeletedTriggerExecutor, IssueMovedTriggerExecutor, IssuePropertySetTriggerExecutor, IssueTransitionedTriggerExecutor, JqlScheduledTriggerExecutor, ManualTriggerExecutor, MultipleIssueEventTriggerExecutor, PullRequestCreatedTriggerExecutor, PullRequestDeclinedTriggerExecutor, PullRequestMergedTriggerExecutor, ServiceLimitBreachedTriggerExecutor, SimulationTriggerExecutor, SlaThresholdBreachedTriggerExecutor, SprintClosedTriggerExecutor, SprintCreatedTriggerExecutor, SprintStartedTriggerExecutor, ThirdPartyComponentExecutor, UnknownComponentExecutor, VersionCreatedTriggerExecutor, VersionReleasedTriggerExecutor, VersionUnreleasedTriggerExecutor, VersionUpdatedTriggerExecutor, WorkLoggedTriggerExecutor

public interface TriggerExecutor<T extends ComponentInputs> extends ComponentExecutor<T>
Interface for all components that can be triggers
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(ComponentContext context, T inputs)
    Checks if a trigger can handle the inputs provided.

    Methods inherited from interface com.codebarrel.automation.api.component.ComponentExecutor

    execute
  • Method Details

    • canHandle

      boolean canHandle(ComponentContext context, T inputs)
      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.
      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.