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 |
---|---|
FlexTeamsMessage |
makePipelineStageCompletedMessage(java.lang.Object pPayload,
boolean pIsUserMessage)
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.
|
java.lang.String |
makeSnapshotCompleteMessage(java.lang.Object pPayload)
Generates a formatted message for the Snapshot Complete Event for Teams messaging.
|
FlexTeamsMessage |
makeSnapshotCompleteMessage(java.lang.Object pPayload,
boolean isUserMessage)
Generates a formatted message for the Snapshot Complete Event for Teams messaging.
|
java.lang.String |
makeTaskCompletedMessage(java.lang.Object pPayload,
boolean approved) |
FlexTeamsMessage |
makeTaskCreatedMessage(java.lang.Object pPayload,
boolean pIsUserMessage)
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.
|
FlexTeamsMessage |
makeWorkflowCompletedMessage(java.lang.Object pPayload,
boolean pIsUserMessage)
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.HashMap pHeaders,
java.lang.String pTeamsMessagingAccountCode)
Approves or rejects a task from an incoming Slack webhook payload.
|
cleanup, createCalendarEvent, getGroovyKey, sendTeamsMessage, sendTeamsMessage, sendTeamsWebhookMessage, sendTeamsWebhookMessage, sendUserTeamsMessage, sendUserTeamsMessage
decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public WebhookMicrosoftTeamsFunctions(boolean isExecute, LogFunctions pFLOG)
public FlexTeamsMessage makeSnapshotCompleteMessage(java.lang.Object pPayload, boolean isUserMessage) throws FlexCheckedException
pPayload
- Event payload for the Snapshot Complete Event. Typically (EVENT.payload).isUserMessage
- Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channel.FlexCheckedException
public FlexTeamsMessage makePipelineStageCompletedMessage(java.lang.Object pPayload, boolean pIsUserMessage) throws FlexCheckedException
pPayload
- Event payload for the Snapshot Complete Event. Typically (EVENT.payload).pIsUserMessage
- Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channel.FlexCheckedException
public FlexTeamsMessage makeTaskCreatedMessage(java.lang.Object pPayload, boolean pIsUserMessage) throws FlexCheckedException
pPayload
- The task created payload.pIsUserMessage
- Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channelFlexCheckedException
public FlexTeamsMessage makeWorkflowCompletedMessage(java.lang.Object pPayload, boolean pIsUserMessage) throws FlexCheckedException
pPayload
- The workflow completed payload.pIsUserMessage
- Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channelFlexCheckedException
public java.lang.String makeSnapshotCompleteMessage(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- Event payload for the Snapshot Complete Event. Typically (EVENT.payload).isUserMessage
- Delegates the type of message that will be generated. Pass true if sending a message to a user channel, false if sending to a team channel.FlexCheckedException
public java.lang.String makePipelineStageCompletedMessageForWebhook(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- Event payload for the Snapshot Complete Event. Typically (EVENT.payload).FlexCheckedException
public java.lang.String makeTaskCreatedMessageForWebhook(java.lang.Object pPayload, java.lang.String pFullUpdateTaskIncomingWebhookUrl) throws FlexCheckedException
pPayload
- The task created payload.pHostOverride
- If you want to have webhooks come back through a proxy, specify it here. If null, the Server Base URL will be used.FlexCheckedException
public java.lang.String 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
public void updateTask(java.lang.Object pQueryParameters, java.util.HashMap pHeaders, java.lang.String pTeamsMessagingAccountCode) throws FlexCheckedException
pQueryParameters
- - The Query Parameters that came in to the Webhook - QUERY_PARAMSpHeaders
- pTeamsMessagingAccountCode
- - The messaging account code for the Teams account.FlexCheckedException