public class WebhookSlackFunctions extends SlackFunctions
APPROVE_STRING, REJECT_STRING
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
WebhookSlackFunctions(boolean isExecute,
LogFunctions pFLOG) |
Modifier and Type | Method and Description |
---|---|
FlexSlackMessage |
makePipelineStageCompletedMessage(java.lang.Object pPayload)
Creates a PipelineStageCompleted Event message that can be posted via postMessage.
|
FlexSlackMessage |
makeSnapshotCompleteMessage(java.lang.Object pPayload)
Creates a SnapshotCompleted Event message that can be posted via postMessage.
|
FlexSlackMessage |
makeTaskCreatedMessage(java.lang.Object pPayload,
java.lang.Boolean pAllowInteraction)
Creates a TaskCreated Event message that can be posted via postMessage.
|
FlexSlackMessage |
makeWorkflowCompletedMessage(java.lang.Object pPayload,
java.lang.Boolean pIncludeErrorData)
Creates a WorkflowCompleted Event message that can be posted via postMessage.
|
void |
updateTask(java.lang.Object pSlackPayload,
java.lang.Boolean pUpdateInPlace)
Approves or rejects a task from an incoming Slack webhook payload.
|
cleanup, getGroovyKey, getUserFromSlackId, postAttachment, postAttachment, postMessage, postMessage, postSimpleMessage
decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public WebhookSlackFunctions(boolean isExecute, LogFunctions pFLOG)
public void updateTask(java.lang.Object pSlackPayload, java.lang.Boolean pUpdateInPlace) throws FlexCheckedException
pSlackPayload
- Slack webhook payload resulting from makeTaskCreatedMessage post message.pUpdateInPlace
- Should the original message be updated with this response.FlexCheckedException
public FlexSlackMessage makeSnapshotCompleteMessage(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- Payload for the Workflow Completed Event. The EVENT.payload key should be usedFlexCheckedException
public FlexSlackMessage makePipelineStageCompletedMessage(java.lang.Object pPayload) throws FlexCheckedException
pPayload
- Payload for the Pipeline Stage Completed Event. The EVENT.payload key should be usedFlexCheckedException
public FlexSlackMessage makeTaskCreatedMessage(java.lang.Object pPayload, java.lang.Boolean pAllowInteraction) throws FlexCheckedException
pPayload
- Payload for the Task Created Event. The EVENT.payload key should be usedpAllowInteraction
- If true, the message will contain interactive buttons to approve/reject the task via inbound webhooks. See the official Events documentation for more information.FlexCheckedException
public FlexSlackMessage makeWorkflowCompletedMessage(java.lang.Object pPayload, java.lang.Boolean pIncludeErrorData) throws FlexCheckedException
pPayload
- Payload for the Workflow Completed Event. The EVENT.payload key should be usedpIncludeErrorData
- If the workflow is a failure, should error data be included in the message. Setting this to false can improve performance of messaging.FlexCheckedException