Hitachi

JP1 Version 12 JP1/Automatic Operation Service Template Reference


4.2.18 File export plug-in

Function

This plug-in outputs the specified value into a desired format.

This plug-in uses Apache Velocity Engine to format the specified value.

Cautionary notes

Version

01.00.00

Tag

File Operations

Return codes

Return code

Description

0

Ended normally.

1

The specified output destination file path is too long.

2

Code written in VTL (Velocity Template Language) has syntax errors.

3

An internal error occurred.

4

An internal error occurred.

5

An error occurred while data was being written to the output file.

63

An internal error occurred.

80

Task execution has stopped.

Property list

The following table describes the properties.

Property key

Property name

Description

Default value

I/O type

Required

content

Content To Export

Specify the character string to be formatted and output to a file.

--

Input

R

fileName#

Output File Name

Specify the output file name.

--

Input

R

directoryPath#

Output Directory Path

Specify the absolute path or relative path of the folder in which the output file is to be stored.

If this property is not specified, the following folder is used. If a relative path is specified, the folder specified for this property is used as the base folder.

If the OS is Windows:

JP1/AO-installation-folder¥data¥task¥task-ID

In a cluster environment, replace JP1/AO-installation-folder with shared-folder-name¥jp1ao.

If the OS is Linux:

/var/opt/jp1ao/data/task/task-ID

In a cluster environment, replace /var/opt/jp1ao with shared-folder-name/jp1ao.

--

Input

O

template

Template For The Output

Specify the output format of the specified value. Note that you must specify the output format with VTL. If this property is not specified, the input value is output as is.

--

Input

O

charset

Character Set

Specify the character encoding of the output file. You can specify one of the following encodings. The specified value is not case sensitive.

  • EUC-JP

  • eucjp

  • ibm-943C

  • ISO-8859-1

  • MS932

  • PCK

  • Shift_JIS

  • UTF-8

  • windows-31j

--

Input

O

exportFilePath

Output File Path

The full path of the output file is output to this property.

--

Output

O

Message

Message

An error message occurring during execution of the plug-in is output to this property.

--

Output

O

#
  • The total length of the values specified for the fileName and directoryPath properties must not exceed 256 characters. If the total length exceeds 256 characters, an error occurs.

  • If there is already a file that has the specified name, the file is overwritten.

  • If there is already a file that has the specified name, an error occurs. In this case, a return code of 5 is returned.

Reserved variables that can be specified for the template property

When specifying the template property, follow VTL. The file export plug-in provides the reserved variables that can be used for specification of that property.

Examples of specifying the content and template properties