Class AutomationEvent

java.lang.Object
com.codebarrel.automation.api.event.AutomationEvent

public class AutomationEvent extends Object
An automation event containing a JSON formatted payload string used to store the payload.
  • Constructor Details

    • AutomationEvent

      public AutomationEvent()
  • Method Details

    • getClientKey

      public String getClientKey()
    • getTriggerType

      public TriggerType getTriggerType()
    • getType

      public String getType()
      The key of the event type that triggered this. Can be a concatenation of keys from JiraEvents#toDetailedEventKey
    • getProjectIds

      public Set<String> getProjectIds()
    • getTimestamp

      public Date getTimestamp()
    • getAuthorAccountId

      @Nullable public String getAuthorAccountId()
    • getPayload

      public String getPayload()
    • getPayload

      public <T> T getPayload(Class<T> clazz)
    • getAuditItemBatchId

      @Nullable public Long getAuditItemBatchId()
      Audit item id for automation events that's fired from other parent events like Branch or Schedule
    • isIgnoreOwnEvents

      public boolean isIgnoreOwnEvents()
    • isAuthorAutomationAddon

      public boolean isAuthorAutomationAddon()
    • getPriority

      public int getPriority()
    • getRuleId

      public Long getRuleId()
    • getTraceId

      public String getTraceId()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toMd5Hash

      public String toMd5Hash()