Show TOC

Procedure documentationWhat's New in the Rules Composer Locate this document in the navigation structure

 

This page gives you an overview of the new features and UI changes in the rules composer for this release.

UI Changes in the Rules Composer
  1. In the Project Explorer view, you should see the Project Resources node instead of the Aliases node.

    This graphic is explained in the accompanying text.

  2. In the Project Explorer view, when you expand the ruleset or flow ruleset, you should see the if-then rules and decision tables in the respective folders.

    This graphic is explained in the accompanying text.

  3. In the Outline view, you should see a single icon that displays options to add if-then rules and decision tables.

    This graphic is explained in the accompanying text.

  4. In the Outline view, you should see new icons to sort rules and decision tables in the descending order and based on the rule priority.

    This graphic is explained in the accompanying text.

  5. In the Project Resources editor, you can add, reload and remove XSD elements and Java classes in a single editor called the aliases editor.

    This graphic is explained in the accompanying text.

Minor Features in the Rules Composer
  1. In the text editors, you should see context menus. For example here is a snapshot of the rule editor:

    This graphic is explained in the accompanying text.

  2. The Preferences screen has options to:

    • Set preferences for aliases and text editors

    • Specify location for ruleset and test reports

    • Configure smart aliases

    This graphic is explained in the accompanying text.

  3. You should see options such as Show References, Replace References and Rename Alias in the context menu of any alias or definition in any text editor across the DC.

    This graphic is explained in the accompanying text.

  4. Your rules get validated automatically and you should see the messages in the Problems view.

    This graphic is explained in the accompanying text.

  5. You now have trace configuration for rules composer.

    1. In SAP NetWeaver Developer Studio, choose   Window   Preferences  .

    2. In the dialog box that appears, in the left hand side, choose Trace Configuration.

    3. In the screen that appears, expand the All Locations node and you should see the Rules Composer node.

  6. JDK 1.5 Support : You can write rules using JDK 1.5 generic features.

    Example Example

    You should be able to create following type of definitions:

    • List <String> names = null

    • List <String> names = newArrayList()<String>

    • List<String> names = Class.getStudentNames() (Here return of this method should be List<String>)

    • Java.util.Map<String.Customer>customerIDHolder = newHashMap <StingCustomer>()

    End of the example.
  7. Copy and paste if-then rules, decision tables, rule scripts and rule flows across DCs.

Polymorphic Xpaths

In case of XSDs , aliases or XPaths can be created for the subtypes also. This will allow you to work with hierarchical XSD models .

Example Example

Here is a sample XML schema which contains an abstract type and two concrete subtypes

This graphic is explained in the accompanying text.

Aliases that can be created for subtypes: <”PersonalVehicle"> and <”CompanyVehicle"> are:

  • ParkingLot/Vehicle [@xsi:type = “PersonalVehicle”]/isGifted = true

  • ParkingLot/Vehicle[@xsi:type = “CompanyVehicle”]/isLeased = true

End of the example.