The Register business rules dialog

ClosedTo access this dialog:

  1. Using the XBOUND Management Center, open a console containing the Validation Designer. (For information about working with consoles, see XBOUND Help.)
  2. Select File > Libraries.

    Note: Libraries is disabled if a process is checked out. Any process that is checked out must first be checked in.

  3. To add a new business rule library, click the button in the Business rule libraries dialog.

    Or, to update an existing business rule library, select the business library and then click the button.

In this dialog you can:

Business rule assembly

Assembly

The path to the business rule library's DLL.

If you select a new or different DLL, the public classes are searched for methods with the [xcfMethod] attribute.

The Display name, Description, and Category resources are read per method. If one of these resources is missing, the DLL cannot be imported.

The return type of the method may be either void or ValidationResultColl. Other return types are interpreted as Unknown.

A message is displayed if no xcf method is found in the DLL.

Allowed parameter types:

  • System.DateTime

  • System.Double

  • System.Int32

  • System.String

  • System.String[]

  • System.String[,]

  • ValidationContext

Deviating parameter types are interpreted as Unknown.

Assembly version

Version of the business rule library.

Assembly public key

Public key of the business rule library.

Content

Business rules

Lists the valid business rules in the library. More details about the selected business rule are displayed to the right.

Class

Class name of the business rule that is selected in the Business rules list.

Name

Method name of the selected business rule.

Display name

Display name of the selected business rule (Closedthe current Language setting applies).

This means that you can select a Language in the drop-down list near the top of the dialog to check or create different versions of this setting for different languages. By changing the display language in Verification the user can control which version is displayed.

Description

Description of the selected business rule (Closedthe current Language setting applies).

This means that you can select a Language in the drop-down list near the top of the dialog to check or create different versions of this setting for different languages. By changing the display language in Verification the user can control which version is displayed.

Category

Category of the selected business rule (Closedthe current Language setting applies).

This means that you can select a Language in the drop-down list near the top of the dialog to check or create different versions of this setting for different languages. By changing the display language in Verification the user can control which version is displayed.

Signature

The parameters of the selected business rule:

  • Kind – Input parameter (Parameter) or return value (Return value).

  • Reference – Whether the value of the parameter can be overwritten by the business rule (Yes/No).

  • Type – The data type of the parameter.

  • Name – The parameter name.

Parameter description

Description of the method parameter that is selected under Signature ( Closedthe current Language setting applies).

This means that you can select a Language in the drop-down list near the top of the dialog to check or create different versions of this setting for different languages. By changing the display language in Verification the user can control which version is displayed.

When you click OK, you are asked if you want to update the business rules of the existing DLL. Click OK to confirm.

If the new DLL does not contain all business rules that the existing DLL does, business rule templates that are not included in the new DLL are deleted by this function, if they are no longer in use.

If a business rule has a different signature, it is not possible to update the rule if it is being used.

Business Logic: Overview