Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

The Output message sent to the output port depends on the configuration provided here. When enabled, it hides the property Output Mode.

FileWriter Configuration

Click the FileWriter Configuration ellipses button to set these properties.

Image Added
Figure 2: FileWriter configuration properties

Is Configured for Different Machine?

...

  • Disabled if the Peer Server and Fiorano Studio are on the same machine.

    In disabled state, paths of directories can be chosen from the file dialog. When the property is enabled, the paths of directories should be manually specified in the Text Editor as shown in Figure 2 and Figure 3.


    Figure 23: Choosing directory path using File Dialog


    Figure3 4: Specifying directory path using Text Editor

...

Specify the format in which the timestamp is to be appended to the name of the target file. Figure 23 shows the descriptions for the symbols that could be used in the Timestamp format.


Figure4 5: Symbols used in Timestamp format.

...

Specify the way in which the output is to be created with the received data. Figure 5 shows the output formatting modes.


Figure5 6: Output Mode

New file for each message

...

Note

If Is Input Binary? has to be enabled for treating the input as binary.



Figure6Figure 7: Text data received on output port.


Figure 78: Binary data received on output port.

...

The encoding to be used while writing the file. The following encodings can be used. Figure 8 shows all the encodings that can be used.


Figure 89: Different types of File Encoding

...

These properties are meant for advanced users.


Figure 9Figure 10: Interaction Configurations panel with the Expert Properties option enabled

 

Info

For descriptions of Expert properties given below, please refer the Interaction Configurations section in the Common Configurations page:

  • Pre Processing XSL Configuration
  • Post Processing XSL Configuration
  • Process Message Based On a Property
  • Validate Input
  • Target Namespace.

...

When a file is written successfully, FileWriter sends out the file information onto the output port. Figure 9 shows the schema of the output XML message. Table 2 shows the description of the schema elements.


Figure 1011: Schema on the output port

Schema Element

Description

FullName

Path of the file to which the data has been written

FileName

Name of the file to which the data has been written

FilePath

Path of the directory which holds the output file

Type

The type of output

ReadAccess

Specifies if the output file has read access

WriteAccess

Specifies if the output file has write access

Size

Size of the output file in bytes

...

Interaction configurations can be tested from the CPS by clicking the Test button. Figure 11 and Figure 12 shows the sample input and the corresponding output message respectively.


Figure 1112: Sample input


Figure 1213: Output generated for input shown in Figure 10.

...

Writing the input message into to a file and displaying the response contents.
Configure the FileWriter as shown below.


Figure 1314: Sample Configuration of FileWriter

Use a Feeder and a Display component to send sample input and check the response respectively.


Figure1415Demonstratingscenario1withsampleinputandoutput

...

In a revenue control packet scenario, if an error occurs while parsing the transaction data, an error message is written to a file.


Figure 1516: Revenue Control Packet Scenario.

...

Adaptavist ThemeBuilder EngineAtlassian Confluence