...
- This capability may need to be enabled in your environment. For more information, Overview of Operationalization.
For more information on how to orchestrate sequences of tasks, see Overview of Operationalization.
Limitations
- Custom security certificates cannot be used.
- HTTP-based requests have a 30-second timeout limit.
Prerequisites
Info |
---|
NOTE: It's possible that webhook requests can be submitted back to the platform to execute API tasks within the platform. However, there are security concerns. Additional configuration is required. For more information, see Configure Webhooks. |
Requirements for receiving application
...
Open your plan in Plan View. Click a node to create a new task.
In the right panel, select HTTP task.
Set the following parameters:
Parameter Description Name User-visible name of the task. Url URL where the webhook message is received by the other application. Headers Insert HTTP content headers as key-value pairs. For example, if your body is in JSON format, you should include the following header:
Code Block key: Content-Type value: application/json
Info NOTE: You may be required to submit an authentication token as the value for the
Authorization
key.Please refer to the documentation for your receiving application about the required headers.
Body (
POST
,PUT
, orPATCH
methods only) The body of the request submitted to the receiving application.Info NOTE: If your request does not require a body, please insert
{}
here. This is a known issue.Method Select the HTTP method to use to deliver the message. The appropriate method depends on the receiving application. Most use cases require the POST
method.Secret key (Optional) A secret key can be used to verify the webhook payload. This secret value must be inserted in this location, and it must be included as part of the code used to process the requests in the receiving application. Insert the secret value here as a string without quotes.
For more information on how this secret key is used to generate a signature, see Verify Webhook Signatures below.
Validate SSL certificate When set to
true
, HTTPS (SSL) communications are verified to be using a valid certificate before transmission.Info NOTE: If you must send a request to an endpoint that has an expired/invalid certificate, you must disable SSL verification.
Retry on failure If the returned status code is outside of the 200-299 range, then the webhook is considered to have failed. When this option is enabled, the request is retried.
When a message is retried, the following header is submitted:
Code Block X-Http-Task-Guid
- To test the connection, click Test. A success message is displayed.
- To add the task to the flow, click Save.
...
As needed, you can specify task overrides as part of a launching a job via API. For more information, see API Workflow - Run Job.
Prerequisites
Info |
---|
NOTE: For this example, the platform must be whitelisted to receive requests from itself. Additional configuration is required. For more information, see Configure Webhooks. |
You must acquire the recipe identifier for the next job to execute.
...
- Open the flow containing the next recipe.
- In Flow View, click the recipe whose outputs you wish to generate.
Review the URL for the recipe object. In the example below, the recipe Id value is
4
:Code Block http://www.example.com:3005/flows/1?recipe=4&tab=recipe
Retain this value for below.
Define the HTTP task
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
Name | This name appears in the
| ||||||
Url | Specify the URL as follows, replacing the example values with your own:
| ||||||
Headers | Insert the following two headers:
| ||||||
Body | In the body, insert the recipe Id for the value for
| ||||||
Method | Select the POST method. |
Verify
- Run the plan for which the HTTP task was created.
- When the plan successfully completes, open the flow containing the other job to execute.
- When you select the target recipe, a new job should be queued, in-progress, or completed.
...
- If needed, create a Slack channel to receive your messages.
- Create an app.
- Activate incoming HTTP messages for your app.
- Specify the channel to receive your incoming messages.
- Copy the URL for the incoming HTTP request from the cURL statement.
Define the HTTP task
Parameter | Description | ||
---|---|---|---|
Name | This name appears in the
| ||
Method | Select the POST method. | ||
Url | Paste the URL that you copied from Slack. | ||
Headers | Copy the content headers from the Slack cURL command:
| ||
Body |
|
Verify
- Click Test to validate that this task will work.
- Run a job:
- Check the Slack channel for a message.
...
Tip |
---|
Tip: Start by typing |
Entered value | Plan metadata reference type | ||
---|---|---|---|
| Metadata information from the plan definition or the current plan run. | ||
| Metadata information for the flow tasks executed in the current plan run. | ||
| Metadata information for the outputs generated by the specific flow task. In this example:
|
Plan information
The following request body contains references to the Plan name, plan run identifier, and the flow that was just executed:
...