Add a custom preprocessor
Once you create the transformation target, you can define a new preprocessor for this target.
Preprocessors link the output type selected by the user in the Generate Output dialog to the conductor file used to transform the content. They also define system and user parameters that apply to the transformation process, such as the Ant conductor file, or the target to run.
IXIA CCMS provides preprocessors for all its system and user transformation scenarios. System administrators with programming knowledge can use the preprocessors as a template to create their own preprocessors.
<preprocessor>
element.<preprocessor name="PDF"
class="com.ixiasoft.outputgenerator.preprocessor.AntProcessor" >
<parameters>
<system>
<parameter name="buildfile" value="/conductor-client.xml"/>
<parameter name="target" value="acme.dita2pdfwrapper"/>
<parameter name="clean" value="job_postprocess"/>
<parameter name="keep.log.files" value="true"/>
</system>
<user>
<parameter name="param1" value="value1"/>
</user>
</parameters>
</preprocessor>
For each preprocessor, you must define several fields.
Field |
Description |
|
---|---|---|
|
Names the preprocessor |
|
|
Determines which class to run when calling this preprocessor Note: Enter
com.ixiasoft.outputgenerator.preprocessor.AntProcessor.
|
|
|
Runs the target associated with this preprocessor Specify: |
|
|
Names the conductor file that contains the target to run for this preprocessor Note: Specify a path relative to the
%OutputGenDir%/data directory, such as
/conductor-client.xml . |
|
|
Names the target to run Note: This target must exist in the file specified
with the
buildfile parameter. |
|
|
Cleans up the %OutputGenDir%/temp directory after running the job Note: Set this parameter to
job_postprocess to use the default job_postprocess
target provided with the IXIA CCMS Output Generator. If you
created your own clean target, specify its target name instead. |
|
(optional) |
Specifies whether to return the transformation logs from the IXIA CCMS Output Generator and DITA Open Toolkit to the
output .zip file using the Note: Default value is
true . |
|
(optional) |
Specifies whether to display the Note: By default, the
ditaval
parameter is enabled or set to true, but set to false
to disable it. |
|
(optional) |
Adds your custom system parameters that set values for use in your transformation scenario Note: You could set a
watermark
parameter for inclusion of a watermark in your output. |
|
<user> parameters |
Adds user parameters to the IXIA CCMS Output Generator dialog |
To add a custom preprocessor: