We’re excited to announce that the latest release includes the “External start” event within the Nintex connector. Selecting this as the start event of your workflow will provide an authenticated REST URL for the workflow. This URL returns the JSON definition of the workflow (including optional parameters derived from variables) which will start the workflow.
What does this allow you to do?
How would you go about doing this?
1. In the Start event configuration, select the Nintex connector and select the External start event.
2. Define your Start event variables. These start event variables will become the input into your workflow when you call the workflow.
3. Configure the steps in your workflow, referencing the Start event variables in your workflow actions as needed.
4. Once the workflow is configured and published, you will get a URL that contains an authentication token which will return the workflow Swagger specification.
5. View the Swagger definition in your browser by copying and pasting the URL. Take note of the start event variable names in the Swagger specification that you can pass values to via a REST call.
name: "API Parameters",
description: "A Url to return the results back (https urls only)",
6. In your workflow, tool, or application of choice, configure a REST call with an HTTP request of type POST to the authenticated URL. You must remove the 'swagger.json' from the URL and add 'instances' to it:
Your URL should look similar to:
7. In the HTTP request header, put the following:
8. In the HTTP request content/body pass the parameters as defined in the start event variables of the workflow. Optionally, you can specify a callback URL to receive all the workflow values once the workflow has completed.
"se_variable_21": "valuetopassintotheworkflow "
9. Your workflow can now be triggered externally!
We are currently working on the next iteration of this feature, which will include the ability to return values from the call. Stay tuned!
Our ask of you: We are still deciding whether to call this "External start". Please feel free to suggest other names in the comments. We look forward to what you might come up with!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.