Concurrent File Writer device
The Concurrent File Writer device works much the same as the File Writer device. The main difference is that the Concurrent File Writer device will write multiple files/messages at the same time. Because of this, many of the setup options are the same as for the File Writer device.
The Concurrent File Writer device has one extra set of options, the Concurrency Options.
This is where you specify the variable that contains the information that will determine how the message is routed. This variable must be included in the message being processed by Connexion.
You set the variable using a Custom Code device. This device must be in the channel.
To set the custom variable:
- Insert a Custom Code device into the channel upstream from the Concurrent File Writer device.
- In the Custom Code device, define your variable.
- Save the device.
Custom variables do not span queues.
This article does not describe the mechanics of writing C# or VB code. Suffice to say, the custom variable definition should look something like this (this is C# code):
Connexion will write messages to files based on the contents of this variable. A new file will be created for each unique value.