public class WebhookMicrosoftTeamsFunctions extends MicrosoftTeamsFunctions
APPROVE_STRING, FLEXDEPLOY_LOGO, REJECT_STRING
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
WebhookMicrosoftTeamsFunctions(boolean isExecute,
LogFunctions pFLOG) |
Modifier and Type | Method and Description |
---|---|
MicrosoftTeamsMessageCard |
makePipelineStageCompletedMessage(java.lang.Object pPayload)
Generates a formatted message for the Pipeline Stage Complete Event for Teams messaging.
|
java.lang.String |
makePipelineStageCompletedMessageForWebhook(java.lang.Object pPayload)
Generates a formatted message for the Pipeline Stage Complete Event for Teams messaging.
|
MicrosoftTeamsMessageCard |
makeSnapshotCompleteMessage(java.lang.Object pPayload)
Generates a formatted message for the Snapshot Complete Event for Teams messaging.
|
MicrosoftTeamsMessageCard |
makeTaskCompletedMessage(java.lang.Object pPayload,
boolean approved) |
MicrosoftTeamsMessageCard |
makeTaskCreatedMessage(java.lang.Object pPayload)
Generates a formatted message for the Task Created Event for Teams messaging.
|
java.lang.String |
makeTaskCreatedMessageForWebhook(java.lang.Object pPayload,
java.lang.String pFullUpdateTaskIncomingWebhookUrl)
Generates a formatted message for the Task Created Event for Teams messaging.
|
MicrosoftTeamsMessageCard |
makeWorkflowCompletedMessage(java.lang.Object pPayload)
Generates a formatted message for the Workflow Completed Event for Teams messaging.
|
java.lang.String |
makeWorkflowCompletedMessageForWebhook(java.lang.Object pPayload)
Generates a formatted message for the Workflow Completed Event for Teams messaging.
|
void |
updateTask(java.lang.Object pQueryParameters,
java.util.Map<java.lang.String,java.lang.Object> pHeaders,
java.lang.String pTeamsMessagingAccountCode)
Approves or rejects a task from an incoming Slack webhook payload.
|
cleanup, createCalendarEvent, getGroovyKey, sendTeamsWebhookMessage, sendTeamsWebhookMessage
captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public WebhookMicrosoftTeamsFunctions(boolean isExecute, LogFunctions pFLOG)
public MicrosoftTeamsMessageCard makePipelineStageCompletedMessage(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- Event payload for the Snapshot Complete Event. Typically (EVENT.payload).FlexCheckedException
- - Any execution errorpublic MicrosoftTeamsMessageCard makeTaskCreatedMessage(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- The task created payload.FlexCheckedException
- - Any execution errorpublic MicrosoftTeamsMessageCard makeWorkflowCompletedMessage(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- The workflow completed payload.FlexCheckedException
- - Any execution errorpublic MicrosoftTeamsMessageCard makeSnapshotCompleteMessage(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- Event payload for the Snapshot Complete Event. Typically (EVENT.payload).FlexCheckedException
- - Any execution errorpublic java.lang.String makePipelineStageCompletedMessageForWebhook(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- Event payload for the Snapshot Complete Event. Typically (EVENT.payload).FlexCheckedException
- - Any execution errorpublic java.lang.String makeTaskCreatedMessageForWebhook(java.lang.Object pPayload, java.lang.String pFullUpdateTaskIncomingWebhookUrl) throws FlexCheckedException
pPayload
- The task created payload.FlexCheckedException
- - Any execution errorpublic MicrosoftTeamsMessageCard makeTaskCompletedMessage(java.lang.Object pPayload, boolean approved) throws FlexCheckedException
FlexCheckedException
public java.lang.String makeWorkflowCompletedMessageForWebhook(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- The workflow completed payload.FlexCheckedException
- - Any execution errorpublic void updateTask(java.lang.Object pQueryParameters, java.util.Map<java.lang.String,java.lang.Object> pHeaders, java.lang.String pTeamsMessagingAccountCode) throws FlexCheckedException
pQueryParameters
- - The Query Parameters that came in to the Webhook -
QUERY_PARAMSpHeaders
- - The request headers that came into the webhookpTeamsMessagingAccountCode
- - The messaging account code for the Teams account.FlexCheckedException
- - Any execution error