Work with Workflows
The following are Apex classes for the Slack workflows
API methods.
Sends a request to indicate that an app's step in a workflow completed execution.
Usage
See Slack’s workflows.stepCompleted method.
The following are methods for WorkflowsStepCompletedRequest
.
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.WorkflowsStepCompletedRequest.Builder
Contains methods to build an instance of the Slack.WorkflowsStepCompletedRequest
class.
A Builder object is obtained by invoking one of the WorkflowsStepCompletedRequest.Builder
methods defined by the WorkflowsStepCompletedRequest
class.
The following are methods for WorkflowsStepCompletedRequest.Builder
. These methods are optional unless specified otherwise.
Required. Returns an instance of Slack.WorkflowsStepCompletedRequest
.
Signature
Return Value
Type: Slack.WorkflowsStepCompletedRequest
Signature
Parameters
outputs
Type: Map<String,Object>
Return Value
Type: Slack.WorkflowsStepCompletedRequest.Builder
Signature
Parameters
outputsAsString
Type: String
Return Value
Type: Slack.WorkflowsStepCompletedRequest.Builder
Required. Context identifier that maps to the correct workflow step execution.
Signature
Parameters
workflowStepExecuteId
Type: String
Return Value
Type: Slack.WorkflowsStepCompletedRequest.Builder
Indicates that an app's step in a workflow completed execution.
Usage
See Slack’s workflows.stepCompleted method.
This class contains standard response methods.
Sends a request to indicate that an app's step in a workflow failed to execute.
Usage
See Slack’s workflows.stepFailed method.
The following are methods for WorkflowsStepFailedRequest
.
Builds a request object that's used when executing the API call.
Signature
Return Value
Type: Slack.WorkflowsStepFailedRequest.Builder
Contains methods to build an instance of the Slack.WorkflowsStepFailedRequest
class.
A Builder object is obtained by invoking one of the WorkflowsStepFailedRequest.Builder
methods defined by the WorkflowsStepFailedRequest
class.
The following are methods for WorkflowsStepFailedRequest.Builder
.
Required. Returns an instance of Slack.WorkflowsStepFailedRequest
.
Signature
Return Value
Type: Slack.WorkflowsStepFailedRequest
Required. A JSON-based object with a message
property that contains an error message.
Signature
Parameters
error
Type: Map<String,Object>
Return Value
Type: Slack.WorkflowsStepFailedRequest.Builder
Required. Context identifier that maps to the correct workflow step execution.
Signature
Parameters
workflowStepExecuteId
Type: String
Return Value
Type: Slack.WorkflowsStepFailedRequest.Builder
Indicates that an app's step in a workflow failed to execute.
Usage
See Slack’s workflows.stepFailed method.
This class contains standard response methods.
The following are methods for WorkflowStepInput
.
Signature
Return Value
Type: Boolean
Signature
Return Value
Type: Object
Signature
Return Value
Type: Map<String,Object>
Signature
Parameters
skipVariableReplacement
Type: Boolean
Return Value
Type: void
Signature
Parameters
value
Type: Object
Return Value
Type: void
Signature
Parameters
variables
Type: Map<String,Object>
Return Value
Type: void
The following are methods for WorkflowStepOutput
.
Signature
Return Value
Type: String
Signature
Return Value
Type: String
Signature
Return Value
Type: String
Signature
Parameters
label
Type: String
Return Value
Type: void
Signature
Parameters
name
Type: String
Return Value
Type: void
Signature
Parameters
type
Type: String
Return Value
Type: void
Sends a request to update the configuration for a workflow step.
Usage
See Slack’s workflows.updateStep method.
The following are methods for WorkflowsUpdateStepRequest
.
Signature
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
Contains methods to build an instance of the Slack.WorkflowsStepFailedRequest
class.
A Builder object is obtained by invoking one of the WorkflowsStepFailedRequest.Builder
methods defined by the WorkflowsStepFailedRequest
class.
The following are methods for WorkflowsUpdateStepRequest.Builder
. These methods are optional unless specified otherwise.
Required. Returns an instance of Slack.WorkflowsUpdateStepRequest
.
Signature
Return Value
Type: Slack.WorkflowsUpdateStepRequest
Signature
Parameters
inputs
Type: Map<String,Slack.WorkflowStepInput>
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
Signature
Parameters
inputsAsString
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
Signature
Parameters
outputs
Type: List<Slack.WorkflowStepOutput>
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
Signature
Parameters
outputsAsString
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
Signature
Parameters
stepImageUrl
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
Signature
Parameters
stepName
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
Required. A context identifier provided with view_submission
payloads used to call back to WorkflowsUpdateStepRequest.
Signature
Parameters
workflowStepEditId
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
Update the configuration for a workflow step.
Usage
See Slack’s workflows.updateStep method.
This class contains standard response methods.