Work with Workflows
The following are Apex classes for the Slack workflows API methods .
WorkflowsStepCompletedRequest Class
Sends a request to indicate that an app’s step in a workflow completed execution.
Usage
See Slack’s workflows.stepCompleted method .
WorkflowsStepCompletedRequest Methods
The following are methods for WorkflowsStepCompletedRequest.
builder()
Builds a request object that’s used when executing the API call.
Signature
1 public static Slack . WorkflowsStepCompletedRequest . Builder builder ( )
Return Value
Type: Slack.WorkflowsStepCompletedRequest.Builder
WorkflowsStepCompletedRequest.Builder Class
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.
WorkflowsStepCompletedRequest.Builder Methods
The following are methods for WorkflowsStepCompletedRequest.Builder. These methods are optional unless specified otherwise.
build()
Required. Returns an instance of Slack.WorkflowsStepCompletedRequest.
Signature
1 public Slack . WorkflowsStepCompletedRequest build ( )
Return Value
Type: Slack.WorkflowsStepCompletedRequest
outputs(outputs)
Signature
1 public Slack . WorkflowsStepCompletedRequest . Builder outputs ( Map < String,Object > outputs )
Parameters
outputs
Type: Map<String,Object>
Return Value
Type: Slack.WorkflowsStepCompletedRequest.Builder
outputsAsString(outputsAsString)
Signature
1 public Slack . WorkflowsStepCompletedRequest . Builder outputsAsString ( String outputsAsString )
Parameters
outputsAsString
Type: String
Return Value
Type: Slack.WorkflowsStepCompletedRequest.Builder
workflowStepExecuteId(workflowStepExecuteId)
Required. Context identifier that maps to the correct workflow step execution.
Signature
1 public Slack . WorkflowsStepCompletedRequest . Builder workflowStepExecuteId ( String workflowStepExecuteId )
Parameters
workflowStepExecuteId
Type: String
Return Value
Type: Slack.WorkflowsStepCompletedRequest.Builder
WorkflowsStepCompletedResponse Class
Indicates that an app’s step in a workflow completed execution.
Usage
See Slack’s workflows.stepCompleted method .
WorkflowsStepCompletedResponse Methods
This class contains standard response methods .
WorkflowsStepFailedRequest Class
Sends a request to indicate that an app’s step in a workflow failed to execute.
Usage
See Slack’s workflows.stepFailed method .
WorkflowsStepFailedRequest Methods
The following are methods for WorkflowsStepFailedRequest.
builder()
Builds a request object that’s used when executing the API call.
Signature
1 public static Slack . WorkflowsStepFailedRequest . Builder builder ( )
Return Value
Type: Slack.WorkflowsStepFailedRequest.Builder
WorkflowsStepFailedRequest.Builder Class
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.
WorkflowsStepFailedRequest.builder Methods
The following are methods for WorkflowsStepFailedRequest.Builder.
build()
Required. Returns an instance of Slack.WorkflowsStepFailedRequest.
Signature
1 public Slack . WorkflowsStepFailedRequest build ( )
Return Value
Type: Slack.WorkflowsStepFailedRequest
error(error)
Required. A JSON-based object with a message property that contains an error message.
Signature
1 public Slack . WorkflowsStepFailedRequest . Builder error ( Map < String,Object > error )
Parameters
error
Type: Map<String,Object>
Return Value
Type: Slack.WorkflowsStepFailedRequest.Builder
workflowStepExecuteId(workflowStepExecuteId)
Required. Context identifier that maps to the correct workflow step execution.
Signature
1 public Slack . WorkflowsStepFailedRequest . Builder workflowStepExecuteId ( String workflowStepExecuteId )
Parameters
workflowStepExecuteId
Type: String
Return Value
Type: Slack.WorkflowsStepFailedRequest.Builder
WorkflowsStepFailedResponse Class
Indicates that an app’s step in a workflow failed to execute.
Usage
See Slack’s workflows.stepFailed method .
WorkflowsStepFailedResponse Methods
This class contains standard response methods .
WorkflowStepInput Class
WorkflowStepInput Methods
The following are methods for WorkflowStepInput.
getSkipVariableReplacement()
Signature
1 public Boolean getSkipVariableReplacement ( )
Return Value
Type: Boolean
getValue()
Signature
1 public Object getValue ( )
Return Value
Type: Object
getVariables()
Signature
1 public Map < String,Object > getVariables ( )
Return Value
Type: Map<String,Object>
setSkipVariableReplacement(skipVariableReplacement)
Signature
1 public void setSkipVariableReplacement ( Boolean skipVariableReplacement )
Parameters
skipVariableReplacement
Type: Boolean
Return Value
Type: void
setValue(value)
Signature
1 public void setValue ( Object value )
Parameters
value
Type: Object
Return Value
Type: void
setVariables(variables)
Signature
1 public void setVariables ( Map < String,Object > variables )
Parameters
variables
Type: Map<String,Object>
Return Value
Type: void
WorkflowStepOutput Class
WorkflowStepOutput Methods
The following are methods for WorkflowStepOutput.
getLabel()
Signature
1 public String getLabel ( )
Return Value
Type: String
getName()
Signature
Return Value
Type: String
getType()
Signature
Return Value
Type: String
setLabel(label)
Signature
1 public void setLabel ( String label )
Parameters
label
Type: String
Return Value
Type: void
setName(name)
Signature
1 public void setName ( String name )
Parameters
name
Type: String
Return Value
Type: void
setType(type)
Signature
1 public void setType ( String type )
Parameters
type
Type: String
Return Value
Type: void
WorkflowsUpdateStepRequest Class
Sends a request to update the configuration for a workflow step.
Usage
See Slack’s workflows.updateStep method .
WorkflowsUpdateStepRequest Methods
The following are methods for WorkflowsUpdateStepRequest.
builder()
Signature
1 public static Slack . WorkflowsUpdateStepRequest . Builder builder ( )
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
WorkflowsUpdateStepRequest.Builder Class
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.
WorkflowsUpdateStepRequest.Builder Methods
The following are methods for WorkflowsUpdateStepRequest.Builder. These methods are optional unless specified otherwise.
build()
Required. Returns an instance of Slack.WorkflowsUpdateStepRequest.
Signature
1 public Slack . WorkflowsUpdateStepRequest build ( )
Return Value
Type: Slack.WorkflowsUpdateStepRequest
inputs(inputs)
Signature
1 public Slack . WorkflowsUpdateStepRequest . Builder inputs ( Map < String, Slack . WorkflowStepInput > inputs )
Parameters
inputs
Type: Map<String,Slack.WorkflowStepInput>
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
inputsAsString(inputsAsString)
Signature
1 public Slack . WorkflowsUpdateStepRequest . Builder inputsAsString ( String inputsAsString )
Parameters
inputsAsString
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
outputs(outputs)
Signature
1 public Slack . WorkflowsUpdateStepRequest . Builder outputs ( List < Slack . WorkflowStepOutput > outputs )
Parameters
outputs
Type: List<Slack.WorkflowStepOutput>
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
outputsAsString(outputsAsString)
Signature
1 public Slack . WorkflowsUpdateStepRequest . Builder outputsAsString ( String outputsAsString )
Parameters
outputsAsString
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
stepImageUrl(stepImageUrl)
Signature
1 public Slack . WorkflowsUpdateStepRequest . Builder stepImageUrl ( String stepImageUrl )
Parameters
stepImageUrl
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
stepName(stepName)
Signature
1 public Slack . WorkflowsUpdateStepRequest . Builder stepName ( String stepName )
Parameters
stepName
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
workflowStepEditId(workflowStepEditId)
Required. A context identifier provided with view_submission payloads used to call back to WorkflowsUpdateStepRequest .
Signature
1 public Slack . WorkflowsUpdateStepRequest . Builder workflowStepEditId ( String workflowStepEditId )
Parameters
workflowStepEditId
Type: String
Return Value
Type: Slack.WorkflowsUpdateStepRequest.Builder
WorkflowsUpdateStepResponse Class
Update the configuration for a workflow step.
Usage
See Slack’s workflows.updateStep method .
WorkflowsUpdateStepResponse Methods
This class contains standard response methods .
This feature is not generally available. It is not part of your purchased Services. This feature is subject to change, may be discontinued with no notice at any time in SFDC’s sole discretion, and SFDC may never make this feature generally available. Make your purchase decisions only on the basis of generally available products and features. This feature is made available on an AS IS basis and use of this feature is at your sole risk.