Manually Trigger Event
You can create an Automations workflow that does not respond to any incoming message or schedule, but runs on demand, and allows you the option to pass in sample JSON data. This type of workflow uses a manual trigger in place of one of the other trigger options. Manual triggers are useful when you want to test a workflow before you create one that receives real, incoming messages.
The manual trigger has two output ports. The success port (✔) can send a message if the trigger initiates successfully. The failure port (x) can send a message if the trigger fails to initiate.
To run an automation with a manual trigger
From the Manage Automations page, select the automation, and:
- If the workflow is not already started, start the workflow.
- Select Actions > Trigger Automation.
Parameters
Note: See also Working with Parameters in Automations Workflows.
- Prompt for JSON on Trigger: When checked, a Trigger Automations dialog opens when the trigger runs. This dialog requires you to drag and drop a JSON file or enter a valid JSON schema. The schema must match the Manual Keys added under Output Keys (below).
Note: The dialog parser only parses top-level keys. To access the contents of nested arrays and objects from a workspace, use JSON manipulation transformers in an FME Desktop workspace.
Output Keys
See Also
Key | Description |
---|---|
time | Event time |
source | Event type |
error.type |
(Failure port only) Error type:
|
error.message | (Failure port only) Error message |
message | (Success port only) Message content |
Manual Keys |
(Success port only) If Prompt for JSON on Trigger is checked (see Parameters, above), the trigger expects additional JSON data in the form of a JSON-formatted request body that matches these keys. To create these keys manually, click the adjacent Add New Manual Key icon. To create them automatically, click Import Keys from JSON, drag and drop a JSON file or enter a valid JSON schema on the Import Keys from JSON dialog, and click Parse. Note: The dialog parser only parses top-level keys. To access the contents of nested arrays and objects from a workspace, use JSON manipulation transformers in an FME Desktop workspace. |