FME Flow: 2024.2
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
There are two ways 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.
- As an Automation App, which allows any authorized FME Flow user to run the automation as an "app" in a web browser. For more information, see Automation Apps.
Parameters
- 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 Parameters added under Output Attributes (below).
- Manual Parameters Form: Enter values directly for each Manual Paremeter added under Output Attributes (below). This option is useful for generating input data without requiring knowledge of JSON.
Note The dialog parser only parses top-level attributes. To access the contents of nested arrays and objects from a workspace, use JSON manipulation transformers in an FME Form workspace.
Output Attributes
See Also
Attribute | 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 Flow user that runs an automation with the manual trigger. |
Manual Parameters |
(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 parameters. To create Manual Parameters manually, click Manage to open the Manual Parameters Editor. To create Manual Parameters 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 Form workspace.
|