Creating DB object qualifications  Attaching qualification objects to rule components

Chapter 3: Building Production Objects

Creating bitwise operator qualifications

Select Bitwise to have e-Biz Impact perform a bitwise operation on the contents of the Qualification Object Information windows’s FldObj or Datalink field. The actual contents of the FldObj or Datalink are not changed. If the result of the bitwise operation is false or zero (0), the qualification fails.

Table 3-16: Bitwise keys

Field (key)

Description

Operator

Select the bitwise operator from the drop-down list to use on the contents of the Qualification Object Information windows’s FldObj or Datalink field. Available operators are:

  • On – the bit indicated by the Bit Loc field is on. The bits of the field object or datalink are numbered from left to right, starting with zero (0).

  • Off – the bit indicated by the Bit Loc field is off. The bits are numbered from left to right, starting with zero (0).

  • & – performs a bitwise AND between the referenced field object or datalink and the value provided for Literal Value/Datalink/Input Field.

  • | – performs a bitwise OR between the referenced field object or datalink and the value provided for Literal Value/Datalink/Input Field.

  • ^ – performs a bitwise EXCLUSIVE OR between the referenced field object or datalink and value provided for Literal Value/Datalink/Input Field.

  • >> – performs a right bit shift. The newly opened places are filled with zero. Supply the number of places to shift in the Literal Value/Datalink/Input Field fields.

  • << – performs a left bit shift. The newly opened places are filled with zero. Supply the number of places to shift in the Literal Value/Datalink/Input Field fields.

  • ~ – performs a bitwise complement. For example, if you have “0101”, the complement is “1010”.

Bit loc

This field appears only when on or off is chosen as the operator. Select the bit you want to evaluate. If the bit selected is beyond the scope of the data, the Qualification fails.

Literal Value

This field appears only when &, |, ^, <<, and >> operators are used. Select this to use a literal value as the second operand. Enter a value in the entry field.

Datalink

This field appears only when &, |, ^, <<, and >> operators are used. Select this to use the contents of a datalink as the second operand. Enter the name of the datalink object or select the Down Arrow to choose from a list of existing datalink objects.

Input Field

This field appears only when &, |, ^, <<, and >> operators are used. Select this to use the contents of a Field object as the second operand. Enter the name of the Field object or select the Down Arrow to choose from a list of existing Field objects.





Copyright © 2005. Sybase Inc. All rights reserved. Attaching qualification objects to rule components

View this book as PDF