(Deprecated) ssp-setup

The ssp-setup Ant task provides a way to configure and repackage the Scenario Service Provider (SSP) to work with your rule projects.

Deprecated feature:

Deprecation icon Decision Validation Services is deprecated in V8.8.0. This feature will be removed in a future release of the product. See Deprecated features for migration details.

To automate the repackaging of the Scenario Service Provider (SSP), you can add the ssp-setup Ant task to your build or deployment process. This Ant task updates and repackages the SSP .ear file.

The ssp-setup Ant task has the following effects:
  • Adds the required Java™ XOM to the archive.
  • Packages the SSP archive.

ssp-setup element attributes

The following table describes the attributes of the Ant task elements and specifies whether they are mandatory or optional.

Table 1. ssp–setup element attributes
Element attribute Description Mandatory/optional
sspInput The path to the input SSP file. Mandatory
sspOutput The path to the output SSP file. Mandatory

ssp-setup nested element attributes

The following table describes the attributes of the nested elements for ssp-setup and specifies whether they are mandatory or optional.

The xomLib and xomClasses elements both support the fileset nested element. See FileSet.

Table 2. ssp-setup nested element attributes
Element attribute Description Mandatory/optional
xomLib Use this nested element if you want to add .jar files. These files are added to the WEB-INF/lib directory of the SSP archive. Optional
xomClasses Use this nested element if you want to add .class files. These files are added to the WEB-INF/classes directory of the SSP archive. Optional

Example

The following sample Ant script shows how to use the ssp-setup Ant task. This script uses the jrules-res-setup.jar file, which you can find in <InstallDir>/executionserver/lib/. The lib directory contains both the implementation for the Ant task and the Rule Execution Server Ant task description.
< project name="ssp-update-sample" default="update-ssp-target">
<!--
This is a task definition for Ant. Ant uses it to map all Rule Execution Server 
task element names (and then 'ssp-update', too) to the specific Rule Execution Server 
task classes that it loads from the JAR file.
-->
<taskdef resource="res-tasks.properties"
classpath="<InstallDir>/executionserver/lib/jrules-res-setup.jar"/>
<!--
Update the file specified by the sspInput attribute. Concise information will
be displayed in the console. The resulting file is generated in the file
specified by the sspOutput attribute.
-->
<target name="update-ssp-target" description="Update with the specified XOM
and configuration">
<ssp-setup 
   sspInput="<InstallDir>/executionserver/applicationservers/<APPSERVER>
   /jrules-ssp-vendor.ear" 
       sspOutput="my-ssp-My.ear" 
       verbose="false">
  <!-- use this nested element (xomLib) if you want to add your files in the WEB-INF/lib directory of the .war file -->
  <xomLib>   
    <fileset dir="data">
      <include name="myXOM.jar"/>
    </fileset>
  </xomLib>
  <!-- use this nested element (xomClasses) if you want to add your files in the WEB-INF/classes directory of the .war file -->
  <xomClasses>   
    <fileset dir="data/classes" />
  </xomClasses>
</ssp-setup>
</target>
</project>
This code sample uses the following files and placeholders:
jrules-ssp-vendor.ear

The name of the application server EAR file.

my-ssp-My.ear

The name of the repackaged application server EAR file.

InstallDir

The installation directory for the Decision Manager package group.

APPSERVER

The name of the application server and its version.