Print Execution

Operation Name

Print Execution

Function Overview

Print documents that are spooled in Report Director Enterprise.

Data Model

XML Type.

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 to show on the script canvas.  
Input data Required Not available Select the component on the script canvas.  
Required settings
Item name Required/Optional Use of variables Description Remarks
Destination Required Not available Select a global resource.
For how to set global resource, refer to "Global Resource Properties".
  • [Add]:
    Adds a new global resource.
  • [Edit list]:
    Global resource settings can be edited in "Edit resource list".
 
Print destination Required Not available Select a print destination.
  • [Printer group]:(default)
    Prints with printer group.
  • [Server printer]:
    Prints with server printer.
  • Not displayed, if Report Director Enterprise 8.2 server is selected in [Destination].
Printer Group Required Available Select or enter the name of printer group.
  • Displayed, if [Printer group] is selected in [Print destination].
Server printer Required Available Select or enter the name of server printer.
  • Displayed, if [Printer group] is selected in [Print destination], or Report Director Enterprise 8.2 server is selected.
Property action
Item name Description Remarks
Update printer group list Get printer group registered in Report Director Enterprise server specified in [Destination], and enable to select in [Printer group].
  • Displayed, if [Printer group] is selected in [Print destination].
Update server printer list Get server printer registered in Report Director Enterprise server specified in [Destination], and enable to select in [Server printer].
  • Displayed, if [Server printer] is selected in [Print destination], or Report Director Enterprise 8.2 server is selected in [Destination].
Print settings
Item name Required/Optional Use of variables Description Remarks
Specify number of copy Optional - Select whether to specify number of copy.
  • [Checked]:
    Specify number of copy.
  • [Not checked]:(default)
    Does not specify number of copy.
 
Number of copy Optional Available Enter number of copy.
  • Validated, if [Specify number of copy] is checked.
  • Enter whole number more than 1.
Print by number of copy Optional - Select whether to print by number of copy.
  • [Checked]:
    Prints by number of copy.
  • [Not checked]:(default)
    Does not print by number of copy.
  • Validated, if [Specify number of copy] is checked.
Specify page range Optional - Select whether to specify page range.
  • [Checked]:
    Specifies page range.
  • [Not checked]:(default)
    Does not specify page range.
  • If unchecked, prints all the unprinted page of the targeted document.
  • When printing the printed document, check is required.
Page range Optional Available Enter page range
  • Validated, if [Specify page range] is checked.
  • Such as the following specification is available.
    • Specify by separating page number with comma as "1,3,6"
    • Specify by connecting page number with hyphen as "4-8"
    • Specify by combining as "1-10,15,22"
    • Specify all pages including printed pages with "*"
Set document as printed Optional - Select whether to make document printed, if all pages are not printed when printing ended normally.
  • [Checked]:
    Make document printed.
  • [Not checked]:(default)
    Does not make document printed.
  • Validated, if [Specify page range] is checked.
Printer settings
Item name Required/Optional Use of variables Description Remarks
Paper feed tray Optional Available Enter paper feed tray number.
  • Enter whole number more than 0.
Paper output bin Optional Available Enter paper output bin.
  • Enter whole number more than 0.
Paper type Optional Available Enter paper type number.
  • Enter whole number more than 0.
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.
 

Schema

Input Schema

<?xml version="1.0" encoding="UTF-8" ?>
<documents>
  <document>
    <docNum>Document administration number</docNum>
  </document>
</documents>
Element name Attribute name Description Remarks
documents - Element showing document information list.  
document - Element showing document information.  
docNum - Element showing document administration number.
  • Enter a whole number.

Output Schema

<?xml version="1.0" encoding="UTF-8" ?>
<printResults>
  <printResult>
    <docNum>Document administration number</docNum>
    <errorCode>Error number</errorCode>
    <errorMessage>Error message</errorMessage>
  </printResult>
</printResults>
Element name Attribute name Description Remarks
printResults - Element showing print execution result list.  
printResult - Element showing print execution result.  
docNum - Element showing Document administration number.  
errorCode - Element showing error number.
  • If print ended normally, "0" will be output.
  • Empty character string is output in the following case.
    • If Report Director Enterprise 8.2 server is selected in [Destination]
    • If [Server printer] is selected in [Print destination]
errorMessage - Element showing error message.
  • Empty character string is output in the following case.
    • If print normal ended
    • If Report Director Enterprise 8.2 server is selected in [Destination]
    • If [Server printer] is selected in [Print destination]

Loading Schema on Mapper

Schema is loaded automatically.
For details, refer to "Edit Schema".

Mass Data Processing

Mass data processing is not supported.

Transaction

Transaction is not supported.

PSP Usage

PSP is not supported.

Available Component Variables

Component variable name Description Remarks
message_category Stores the category of message code corresponding to the occurred error.
  • The value defaults to null.
message_code Stores the code of message code corresponding to the occurred error.
  • The value defaults to null.
message_level Stores the severity of message code corresponding to the occurred error.
  • The value defaults to null.
error_type Returns the error type when error occurred.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The value may vary depending on the DataSpider Servista version.
error_message Returns the error message when error occurred.
  • The value defaults to null.
  • The value may vary depending on the DataSpider Servista version.
error_trace Returns the trace information when error occurred.
  • The value defaults to null.
  • The value may vary depending on the DataSpider Servista version or the client application used.

RDE UDK Log

RDE UDK log used in Report Director Enterprise adapter will be output under $DATASPIDER_HOME/server/logs as file name rde.log.
In RDE UDK log, new log file is created if exceeds 2048KB, and 5 old files will be kept.

Main Exceptions

Exception name Cause Solution
InputDataNotFoundException [Input data] is not specified. Specify [Input data], or draw data flow.
ResourceNotFoundException
Resource definition is not found. Name:[]
[Destination] is not specified. Specify [Destination].
ResourceNotFoundException
Resource definition is not found. Name:[<Global resource name>]
Resource definition selected in [Destination] is not found. Check global resource specified in [Destination].
InvalidPropertyConfigurationException
Resource required item is not set:<Property name>
Required setting of resource selected in [Destination] is not set. Set resource required item.
InvalidPropertyConfigurationException
<Property name> is not specified.
[<Property name>] is not specified. Specify [<Property name>].
RdConnectException
Failed to connect database.
Failed to connect database using in Report Director Enterprise. Make connection to database possible such as restarting database using in Report Director Enterprise, or editting maximum connection number.