The table task descriptor defines a Business Rules table task.
A table task contains a data descriptor, which defines the layout of the corresponding .tbl data file. You
can also configure assignment statements to run before and after the table look up is performed.
The following XML shows an example of an account table task. Figure 1. Table task descriptor
The following table shows the elements for a table task descriptor.
Table 1. Table task descriptor elements
Element
Parent element
Description
taskDescriptor
None, this is the root element
This element is the root element. The name of the task to be defined must be specified in the name
attribute and the type attribute must be set to TABLE.
dataName
taskDescriptor
This element contains the name of the data descriptor that describes the data that is used by this
task.
userExitClass
taskDescriptor
This optional element specifies the name of a Java™ class that is
called before and after the task is executed. The user exit must implement the defined task user exit
interface.
A table task returns either SUCCESS or FAILURE in a results variable when it has finished its table look
up. It returns SUCCESS when the record was located during the table look up and FAILURE when it was not.