Class WebhookMicrosoftTeamsFunctions


public class WebhookMicrosoftTeamsFunctions extends MicrosoftTeamsFunctions
  • Constructor Details

    • WebhookMicrosoftTeamsFunctions

      public WebhookMicrosoftTeamsFunctions(LogFunctions pFLOG)
  • Method Details

    • makePipelineStageCompletedMessage

      public MicrosoftTeamsMessageCard makePipelineStageCompletedMessage(Object pPayload) throws FlexCheckedException
      Generates a formatted message for the Pipeline Stage Complete Event for Teams messaging.
      Parameters:
      pPayload - Event payload for the Snapshot Complete Event. Typically (EVENT.payload).
      Returns:
      Formatted message to be used with 'Send' methods.
      Throws:
      FlexCheckedException - - Any execution error
    • makeTaskCreatedMessage

      public MicrosoftTeamsMessageCard makeTaskCreatedMessage(Object pPayload) throws FlexCheckedException
      Generates a formatted message for the Task Created Event for Teams messaging.
      Parameters:
      pPayload - The task created payload.
      Returns:
      Formatted message to be used with 'Send' methods.
      Throws:
      FlexCheckedException - - Any execution error
    • makeWorkflowCompletedMessage

      public MicrosoftTeamsMessageCard makeWorkflowCompletedMessage(Object pPayload) throws FlexCheckedException
      Generates a formatted message for the Workflow Completed Event for Teams messaging.
      Parameters:
      pPayload - The workflow completed payload.
      Returns:
      Formatted message to be used with 'Send' methods.
      Throws:
      FlexCheckedException - - Any execution error
    • makeSnapshotCompleteMessage

      public MicrosoftTeamsMessageCard makeSnapshotCompleteMessage(Object pPayload) throws FlexCheckedException
      Generates a formatted message for the Snapshot Complete Event for Teams messaging.
      Parameters:
      pPayload - Event payload for the Snapshot Complete Event. Typically (EVENT.payload).
      Returns:
      Formatted message to be used with 'Send' methods.
      Throws:
      FlexCheckedException - - Any execution error
      Since:
      5.5.0.2
    • makePipelineStageCompletedMessageForWebhook

      public String makePipelineStageCompletedMessageForWebhook(Object pPayload) throws FlexCheckedException
      Generates a formatted message for the Pipeline Stage Complete Event for Teams messaging.
      Parameters:
      pPayload - Event payload for the Snapshot Complete Event. Typically (EVENT.payload).
      Returns:
      Formatted message to be used with 'Send' methods.
      Throws:
      FlexCheckedException - - Any execution error
      Since:
      5.5.0.2
    • makeTaskCreatedMessageForWebhook

      public String makeTaskCreatedMessageForWebhook(Object pPayload, String pFullUpdateTaskIncomingWebhookUrl) throws FlexCheckedException
      Generates a formatted message for the Task Created Event for Teams messaging.
      Parameters:
      pPayload - The task created payload.
      Returns:
      Formatted message to be used with 'Send' methods.
      Throws:
      FlexCheckedException - - Any execution error
      Since:
      5.5.0.2
    • makeTaskCompletedMessage

      public MicrosoftTeamsMessageCard makeTaskCompletedMessage(Object pPayload, boolean approved) throws FlexCheckedException
      Throws:
      FlexCheckedException
    • makeWorkflowCompletedMessageForWebhook

      public String makeWorkflowCompletedMessageForWebhook(Object pPayload) throws FlexCheckedException
      Generates a formatted message for the Workflow Completed Event for Teams messaging.
      Parameters:
      pPayload - The workflow completed payload.
      Returns:
      Formatted message to be used with 'Send' methods.
      Throws:
      FlexCheckedException - - Any execution error
      Since:
      5.5.0.2
    • updateTask

      public void updateTask(Object pQueryParameters, Map<String,Object> pHeaders, String pTeamsMessagingAccountCode) throws FlexCheckedException
      Approves or rejects a task from an incoming Slack webhook payload. This method expects the inbound webhook payload resulting from the makeTaskCreatedMessage formatted message. Works with Approval tasks only.
      Parameters:
      pQueryParameters - - The Query Parameters that came in to the Webhook - QUERY_PARAMS
      pHeaders - - The request headers that came into the webhook
      pTeamsMessagingAccountCode - - The messaging account code for the Teams account.
      Throws:
      FlexCheckedException - - Any execution error
      Since:
      5.5.0.2