webMethods Integration flow service task configuration

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

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, which is 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. For 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 that starts 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 run from the list.
Note: Services that are 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 webMethods Integration.

When importing the actions that contain the Flow service tasks to another environment, make sure that you import the actions to the connected instance of 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 the Include file content as stream option in webMethods Integration Flow service from Managed File Transfer, make sure of the following in the Flow service to get the content in the service:
    • The input field name is stream
    • The field type is object
    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.

For example, consider you invoke a Flow service by having two output fields, output1 and output2. Configure the following variables in the Extract flow service output section.
myVar1
/output1
myVar2
/output2

With this configuration, myVar1 and myVar2 are available as server variables. Use the values that the service execution returns in the format {myVar1} and {myVar2}.

Execute task even if there are no files Select this option if you want the operation to be run if no files are found.
Execute task only once Select this option to execute the operation a single time.