Generate HTML File

Operation Name

Generate HTML File

Function overview

Generating HTML files using Velocity.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required/Optional Use of Variables Description Remarks
Name Required Not available Enter the name on the script canvas.  
Input data Optional Not available Select the component on the script canvas.
  • You can add a HTML input from the builder.
    See "Using the input data" for more information please.
Required settings
Item name Required/Optional Use of Variables Description Remarks
File Required Available Enter the path to HTML format.

Click [Browse] button to activate the file Selectr and Select the file.
Encoding Required Available Select or input write file encode.

Use only the canonical name supported by Java SE Runtime Environment 8 when specifying the encoding directly in the field.
Refer to "Supported Encodings"(http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html) for details.
 
Transaction
Item name Required/Optional Use of Variables Description Remarks
Execute transaction processing Required Not available Select whether to perform transaction processing.
  • [Checked]:
    Perform Transaction processing.
  • [Not Checked]: (default)
    Do not perform transaction processing.
Refer "File Type adapter transaction" for more information.
 
Comment
Item name Required/Optional Use of Variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Velocity templates

Start your HTML builder, Velocity template specified.
For more information, "HTML Builder Operations Guide" for more information please.

Transaction

Transaction is supported.

Transaction is enabled only when [Execute transaction processing] in [Transaction] is checked.

PSP Usage

PSP is not supported.

Available Component variables

Variable name Description Remarks
message_category Stroes the category to which corresponding message code belongs to, when an error occurs.
  • The value defaults to null.
message_code Stores its corresponding message code of occured error.
  • The value defaults to null.
message_level Stores the severity of the corresponding message code of the occured error.
  • The value defaults to null.
error_type Stores the type of the occured error.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on the DataSpider Servista version.
error_message Stores the error message for the occured error.
  • The value defaults to null.
  • The message may vary depending on the DataSpider Servista version.
error_trace Stores stack trace of the occurred error.
  • The value defaults to null.
  • The message may vary depending on the DataSpider Servista version or the client application used.

Specification Limits

Main exceptions

Exception name Cause Solution
InvalidPropertyConfigurationException
<Property name> is not specified.
[<Property name>] is not specified. Specify the [<Property name>].
FileIsDirectoryException Path input in [File] is directory. Input file path in [File].
FileIsLockedException File specified in [File] is locked. Please go to Windows Explorer or CLI to unlock.
VariableNotFoundException Failed to compile script. Please check the Velocity template specified.
java.io.FileNotFoundException
Another processing is in use.
File specified in [File] is being used by another process. Please check whether it is used by other processing.
java.lang.IllegalStateException
No documents have been set as the input source specified
[Input data] is not specified as input data for the given input. Please confirm [Input data].
java.io.UnsupportedEncodingException Encoding that are not supported in [Encoding] are specified. Specify an encoding that is supported in Java SE Runtime Environment 8.
Refer to "Supported Encodings"(http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html) for details.