Mapper
Use the mapper to enter input values manually or map the input schema elements to output data of the same data type from preceding activities, trigger, or the flow itself. An activity has access to the output data from the trigger to which the flow is attached in addition to the output from any of its preceding activities in the same flow provided that the trigger or activity has an output. This data is displayed in a tree structure under Upstream Output in the Mapper. The input schema for the activity is displayed in the pane to the left of the Upstream Output pane. You can map data coming from the upstream output to the input fields of the activity. Activities also have access to the input fields of a flow to which the activity belongs. You enter the flow input schema in the Input Settings tab of the Flow Inputs and Outputs accordian tab. Within a flow, use the mapper to pass data between the activities, and between the trigger and the activities or the trigger and the flow.
When you click on an activity or trigger in the flow details page, the configuration page for that activity or trigger opens. The following image is an example of the configuration page that would open if you clicked on the InvokeRESTService activity. The image describes the areas of the Mapper.
- Settings
For triggers, this tab diplays the Trigger settings and Handler settings. Trigger settings are specific to that particular trigger and Handler settings are settings applicable to a specific flow attached to that trigger. Each flow attached to that trigger can have its own handler settings.
- Input Settings
This tab allows you to enter the schema for the flow or activity input as the case may be.
- Input
This tab displays the schema you entered in the Input Settings tab in a tree format. You can manually enter values for any elements in the input schema or map any input element to the output from previous activites or trigger in this tab.
- Output Settings
This tab allows you to enter the schema for the flow or activity output as the case may be.
- Output
This tab displays the schema you entered in the Output Settings tab in a tree format. The schema displayed in this tab is for read-only purpose.
- Reply Settings
This tab is specific to triggers that send replies back to the caller, such as the REST or GraphQL triggers. You enter the trigger reply schema in this tab.
- Map to Flow Inputs
This tab is specific to triggers that have an output, such as the REST or GraphQL triggers. You manually enter or map the elements from the trigger output (schema set in Output Settings tab) to the flow input elements (schema entered in Input Settings tab of the Flow Inputs & Outputs accordian tab).
- Map from Flow Outputs
This tab is specific to triggers that need to send a reply to the caller, such as the REST or GraphQL triggers. You manually enter or map the elements from the output of the flow (schema set in Reply Settings tab) to the flow output elements (schema entered in Output Settings tab of the Flow Inputs & Outputs).
- Iterator
Use this tab to enter the iteration details for activities that you want to iterate.
- Literal values - Literal values can be strings or numeric values. These values can either be manually typed in or mapped to a value from the output of the trigger or a preceding activity in the same flow. To specify a string, enclose the string in double quotes. To specify a number, type the number into the text box for the field. Constants and literal values can also be used as input to functions and expressions.
- Direct mapping of an input element to an element of the same type in the Upstream Output.
- Mapping using functions - The mapper provides commonly used functions that you can use in conjunction with the data to be mapped. The functions are categorized into groups. Click a function to use its output in your input data. When you use a function, placeholders are displayed for the function parameters. You click a placeholder parameter within the function, then click an element from the Upstream Output to replace the placeholder. Functions are grouped into logical categories.
- Expressions - You can enter an expression whose evaluated value will be mapped to the input field
This section covers the following topics:
- Scopes in the Mapper
The Upstream Output area in the mapper displays the output data from preceding activities, trigger, and/or flow inputs. This area groups the output elements based on a scope. A scope represents a boundary in the Upstream Output within which an input element can be mapped. For example, when mapping an input element to an element from the output of a trigger, the scope of the input element is represented in Upstream Output as $trigger. The following scopes are currently supported by the mapper. - Reserved Keywords to be Avoided in Schemas
TIBCO Cloud Integration - Flogo (PAYG) uses some words as keywords or reserved names. Do not use such words in your schema. When you import an app, if the schema entered in the Input or Output tab of an activity or trigger contains reserved names, after the app is imported, such attributes get treated as special characters which results in runtime errors. - Using Functions
You can use a function from the list of functions available under Functions in the mapper. Input parameters to the function can either be mapped from an element under Upstream Output, a literal value, or an expression that evaluates to the appropriate data type or any combination of them. - Using Expressions
You can use two categories of expressions in TIBCO Cloud Integration - Flogo (PAYG). - Supported Operators
TIBCO Cloud Integration - Flogo (PAYG) supports the operators that are listed below. - Using the Mapper
The mapper opens when you click any element in the input schema tree in an activity configuration tab.
