IBM BPM version 8570 cumulative fix 2016.06Defining validation behavior for business objects

In IBM® Process Designer, you can create business object types that define restrictions on the simple types. For example, for a business object type that has Decimal as the base type, you can specify the precision and scale settings. These settings are validated in heritage coaches and when you set a variable value in a process or service. Through various settings, you can customize the validation to behave like the totalDigits and fractionDigits constraining facets as defined by the XML Schema.

About this task

In its default settings, IBM Business Process Manager ignores precision settings in processes or services but checks them in heritage coaches. The scale setting is checked in both processes or services and heritage coaches. The check is performed for equality, meaning that a variable with a scale of 2 must have exactly 2 digits after the decimal point.

Procedure

To change the precision and scale settings in the 100Custom.xml file, complete the following steps:

  1. Stop the server for IBM Process Server or IBM Process Center.
  2. Open the appropriate 100Custom.xml configuration file in a text editor. See The 100Custom.xml file and configuration.
  3. Add the following code to the file:
    <server>
    	<business-object merge="mergeChildren">
    		<precision-validation-on-server-enabled>true</precision-validation-on-server-enabled>
    		<precision-validation-strip-trailing-zeros>true</precision-validation-strip-trailing-zeros>
    		<precision-validation-type merge="replace">lessOrEquals</precision-validation-type>
    		<scale-validation-strip-trailing-zeros>true</scale-validation-strip-trailing-zeros>
    		<scale-validation-type>lessOrEquals</scale-validation-type>
    	</business-object>
    </server>
  4. Save your changes to the 100Custom.xml file.
  5. Start the server for Process Server or Process Center.