• 沒有找到結果。

Use the Browse button to navigate to the location of the server certificate

Once the server certificate is uploaded successfully, the connection uses the certificate to authenticate.

LogMessage

LogMessage is an activity that writes a message to the log. For each application, there is a log file. You can view the logs in the Log tab.

You can view the logs in the Logs tab.

Settings

The Settings tab has the following fields.

Log Level Select one of the following log levels:

Info: logs informational messages highlighting the application progress.

Warning: is the warning message of an unexpected error when running the flow.

Error: logs error conditions and messages.

Debug: can be used for debug-level messages.

Add Flow Details Appends Flow Instance ID, Flow Name and Activity Name to the log message.

By default, this field is set to False.

Input

Provide the following input for this activity.

Input Iten Description

message The message to be displayed in the log.

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Flogo® Enterprise User's Guide for information on the Loop tab.

Mapper

Use this activity to define a schema to get the desired data. This activity is particularly useful to define a schema for an object of type any. In the flow, you place the Mapper activity preceding an activity whose input requires an object of data type any. This allows you to map the object of type any to the output from the Mapper activity. An advantage of using this activity is that you can construct the data for the any data type within the flow instead of fetching it from outside.

Input Settings

Field Description

Input Schema Enter the JSON schema that will be used as the input for this activity. The elements of this schema are available for mapping in the Input tab and are mappable to the output from any preceding activity, trigger, or the flow input.

The Mapper activity outputs the elements from this schema, so they are also

displayed in the Output tab in a tree format. This makes them available for mapping in the following activities.

Input

The Input tab displays the schema you entered in the Input Settings tab in a tree format. You can map these elements to the output from any preceding activity, trigger, or the flow input.

Output

The Output tab displays the elements from the schema you entered in the Input Settings tab.

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Flogo® Enterprise User's Guide for information on the Loop tab.

ParseJSONActivity

This activity takes a stringified JSON data as input and converts it into a JSON object, which can then be accessed by the downstream activities that follow. You provide the input to the activity either by entering the stringified JSON data manually in the Input tab or saving it in a file and entering the file path in the Input tab. The activity supports output validation if you opt to validate the input JSON data against the output schema that you configure in the Output Settings tab.

Settings

Field Description

Output

Validation True: Select True to validate that the JSON data in your input string matches the schema that you configure in the Output Settings tab of the activity.

False: Select False if you do not want to validate the JSON data in your input string against the schema you configured.

This field can be configured with an application property.

Input

Field Description

jsonString The string containing the JSON data that you want to parse. This activity creates a JSON object with the parsed JSON data. Enter the string manually or map it to an element from the output of the trigger, flow input, or one of the preceding activities.

Output Settings

Field Description

Schema The schema that you want to use to create the JSON object. You have the option to validate the stringified JSON (input to the activity) against this schema.

Output

The output schema is displayed in a read-only tree format.

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Flogo® Enterprise User's Guide for information on the Loop tab.

This activity is not supported in Flogo Enterprise 2.5.0 and above. This activity is applicable only to flows that were created in previous versions of Flogo Enterprise (prior to version 2.5.0) that are imported into the current version.

This activity automatically gets created when you create a flow with a REST trigger. It is used by the server to reply to a request from the REST client.

Configuration

Field Description

Reply Reply sent by the server in response to the REST client request. The two supported replies are Success with Data and Error with Message.

If you select Success with Data, the reply schema must be configured in the Input Settings tab in the Schema field. If you select Error with Message, you must configure the error message in the message field of the Input tab.

Input Settings

Field Description

Schema Enter the reply schema or sample data using a JSON structure.

Input

Field Description

message The string that is included in the reply. If you configured the Reply field in the Configuration tab with Error with Message, the error message must be entered in message text box. If you configured the Reply field with Success with Data, then you must map your data according to the schema specified in the Input Settings tab.

SendMail

SendMail is an activity that sends an email by way of an SMTP server.

To securely configure the SendMail activity using the smtp.gmail.com server, use TLS on Port 587 or SSL on port 465.

Settings

The Settings tab has the following fields.

Field Description

Server The host name or IP address for the mail server.

Port The port used to connect to the server.

Field Description Connection

Security The type of connection to be used to communicate with the mail server. Select TLS or SSL depending upon the security configuration of the mail server. In case no security is enabled on the mail server, select NONE.

Username The username to use when authenticating to the mail server.

Password The password to use when authenticating to the mail server.

Input

This tab displays the fields that are used as input for the activity.

Input Item Description message_content_ty

pe The type of message content. Valid types are "text/plain" or "text/html".

sender The email address of the sender.

recipients The recipient list for the email.

You can send the mail to multiple recipients. Provide a list of recipients in a single string by using a comma as the delimiter.

cc_recipients The CC recipient list for the email.

You can send the mail to multiple recipients. Provide a list of recipients in a single string by using a comma as the delimiter.

bcc_recipients The BCC recipient list for the email.

You can send the mail to multiple recipients. Provide a list of recipients in a single string by using a comma as the delimiter.

reply_to

Email address to which the reply message is to be sent.

subject The subject of the email.

message The content of the email message.

attachments

File attachments to be sent along with the email message.

To map the child elements, add array.forEach() to the attachments field and then specifiy the child elements as follows:

file: Specify the path of the file to be attached using file://<path> or specify the content of the file by enclosing it in double quotes.

In Flow Tester, file://<path> cannot be specified.

filename: Specify the name of the file to be attached.

base64EncodedContents: If the file is a Base64 encoded file, set this field to

true. The default is blank (or false).

To send multiple attachments, use the Loop feature.

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Flogo® Enterprise User's Guide for information on the Loop tab.

Sleep

The Sleep activity is an asynchronous activity that suspends the execution of a flow for the specified time.

Settings

Field Description

Interval Type The unit of the time interval for which the execution of the flow must be suspended.

Supported types are Millisecond, Second, and Minute.

Default: Millisecond

Interval The time interval for which the execution of the flow must be suspended.

Default: 0

Input

The fields in the Input tab are required only if you need to pass values from the output of a previous activity or trigger. Otherwise, you can directly specify the values in the Settings tab. Values specified in the Input tab take precedence over values specified in the Settings tab, if values are configured in both the tabs.

Field Description

Interval Type The unit of the time interval for which the execution of the flow must be suspended.

Supported types are Millisecond, Second, and Minute.

Default: Millisecond

Field Description

Interval The time interval for which the execution of the flow must be suspended.

Default: 0

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Flogo® Enterprise User's Guide for information on the Loop tab.

相關文件