IBM webMethods Integration Flow service Task Configuration

Configure the following properties for the IBM® webMethods Integration Flow service task:

Prerequisite: You need IBM webMethods Integration 10.15 to execute this task on IBM webMethods Managed File Transfer.

Field Description
Task name Type a unique name for the task.
File filter When you define a File filter for a task, the task acts only on files that are filtered out. For example, type *.zip to trigger the action only when ZIP files are uploaded or downloaded. To trigger an action based on a name string in the ZIP files, use the name string in the File filter box, preceded and followed by wildcard characters. For example, type *invoice*.zip to trigger the action based on the file URLs, when ZIP files containing the character string invoice in their file names are uploaded or downloaded.
Note: Use wildcard characters to filter the file names.
If you want to use a regular expression, specify a valid regular expression in the File filter and select the Use regular expression option. Example:
  • ^(?!.*purchaseorder).*$: Excludes files with the file URL containing purchaseorder.
  • */out/.*: Include files with the file URL containing the folder out.
  • ^abc(.*)123$: Includes anything that starts with abc and ends with 123. Matches abc123, abcxyz123, but not abcxyz123def.
  • NEW-((*.doc)⏐| (*_backup_*)): Includes anything starting with NEW- that either ends in .doc, or is followed by the string _backup_.
Flow service Click Browse to select the Flow service you want to execute from the list.
Note: Services configured for an HTTP/HTTPS endpoint can be invoked from actions and only these services are displayed.
Include file content as stream

Select the option to pass the contents of the file to a Flow service on IBM webMethods Integration.

When importing the actions containing the Flow service tasks to another environment, ensure that you import the actions to the connected instance of IBM webMethods Integration as well.If a failure occurs during the import, the output parameters are not passed on to the next task. The errors in the input and output pipelines appear in the event log.

Note:
  • The maximum file size for this task is 20 MB.
  • When selecting Include file content as stream in IBM webMethods Integration Flow service from IBM webMethods Managed File Transfer, ensure that the input field name is stream and field type is object in the Flow service, to get the content in the service. The object can be parsed as InputStream.input output fields
Flow service input Only 'String' values can be applied to the service.
Include file content as stream

Click add to add the variables with Variable name that you want to assign to the output parameters of the service and the Variable path of the output parameter.

Example: You invoke a Flow service by having two output fields, output1 and output2. Configure the following variables in the Extract flow service output section.
Variable Name Variable Output
myVar1 /output1
myVar2 /output2
With this configuration, myVar1 and myVar2 are available as server variables. Use the values returned by the service execution in the format {myVar1} and {myVar2}.
Execute task even if there are no files Select this option if you want the operation to be executed if no files are found.
Execute task only once Select this option, if you want the operation to be executed once.