Manual Trigger
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 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.
- Click Trigger.
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 prompts you to provide either of the following:
- JSON Form: Drag and drop a JSON file or enter a valid JSON schema. The schema must match the Manual Keys added under Output Keys (below).
- Manual Keys Form: Enter values directly for each Manual Key added under Output Keys (below). This option is useful for generating input data without requiring knowledge of JSON.
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.user |
(Success port only) The FME Server user that runs an automation with the manual trigger. |
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 Manual Keys manually, click the adjacent Add New Manual Key icon. To create Manual Keys automatically:
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. |