You are here: Configuration > Configuration Panes > Math Pane > Identifier

 

IDENTIFIER Math Variable

The IDENTIFIER math variable is typically used to generate confirmation numbers for spawned activities using alphabetic and/or numeric parts. The numeric parts may be incremented in order to provide a unique ID constructed with the same elements.

 

Identifier Drag and Drop Option

IDENTIFIER Option in Palette Window

 

Prerequisites

When setting up a new Identifier, you must insert the first record into the AsSequence table, then add the database component that allows it to work correctly. The scripts required for each type of database are provided below.

 

ALL (ORACLE, DB2, SQL):

Insert into ASSEQUENCE (SEQUENCENAME, SEQUENCEINTEGER, SEQUENCEDESCRIPTION, DATABASESEQUENCENAME)
Values ('ConfirmationNumber', 1, 'ConfirmationNumber', 'ConfirmationNumber')

 

Insert into ASSEQUENCE (SEQUENCENAME, SEQUENCEINTEGER, SEQUENCEDESCRIPTION, DATABASESEQUENCENAME)
Values ('ConfirmationNumberMV', 1, 'ConfirmationNumberMV', 'ConfirmationNumberMV')

 

ORACLE and DB2 Only:

Create sequence ConfirmationNumber start with 1   increment by 1  maxvalue 999999999  cache 200
 
Create sequence ConfirmationNumberMV start with 1   increment by 1  maxvalue 999999999  cache 20

 

Configuration Considerations

Keep in mind the following points when configuring IDENTIFIER math variables.

  1. An IDENTIFIER math variable should be used to confirmation numbers for spawned activities.

  2. An Identifier field should be used to generate the originating (parent) activity’s confirmation number.

  3. An IDENTIFIER math variable can be used in ScreenMath.

  4. The Identifier field configuration can include the <ClearOnRecycle> element that will clear a field when an activity is manually recycled, allowing for the generation of a new confirmation number in such cases. When an activity is recycled due to a system-generated undo/redo, the original confirmation number is retained.

  5. Each Part is added to the Parts node in the math variable window of the Rules Palette Math pane. Each type translates to a <Part> element in the XML. 

  6. Identifier MathVariable configuration includes LOG=”Yes” attribute, in case an activity is re-done due to system-generated undo/redo. The original Identifier MathVariable value can be accessed in the database via configuration.

 

Define IDENTIFIER Math Variable and Parts

Drag and drop the IDENTIFIER math variable from the Palette window onto the configuration area of the Math Pane. Enter the math variable information such as the math variable name and Log value (Yes or No). The data type and variable type are preset. (For additional information on adding math variables, see Math Pane.)

 

Click on the Parts node and begin to configure the individual components that will make up the unique identifier. An explanation of each type is given in the section below. Click the Add button after each individual part is added until all parts are complete.

 

If the fields under the Parts node are not visible, drag the bottom scroll bar all the way to the right. Then, use the vertical scroll bar to scroll down to reveal the fields.

 

Field Properties Window for Identifier Field

IDENTIFIER Math Variable in Math Pane

 

IDENTIFIER Parts

The following list explains the various IDENTIFIER Parts options. Each type is listed, along with the configuration options that accompany the type. Each type translates to a <Part> element in the XML.  

The value of the <Part> element is the literal text, entered in the Value field, that is concatenated to the IDENTIFIER math variable.

 

 

A sequence number is generated from a sequence set identified by the sequence name referenced in the <Part> element’s value. Once a sequence number becomes part of the value of an IDENTIFIER math variable, it cannot be duplicated by any subsequent IDENTIFIER math variable using the same sequence set. Concurrent accesses to the same sequence will yield different sequence values.   

 

A required FORMAT attribute specifies the padding characters and length of the output that is concatenated to the IDENTIFIER math variable. The padding character may be any visible character or mix of characters that define the padding character(s). The length of the output is defined by the number of characters in the FORMAT attribute's value. For example, if FORMAT=”000”, the complete length of the <Part> value is 3. If the sequence number is 1, then the output is 001. If the sequence number is 100, then the output is 100.       

 

The optional Sequence Date Prefix text box allows entry of a context prefix (Activity, Policy, Plan, or screen math ID). This is a freeform text entry field.

 

The optional Sequence Date text box filters the sequence records for a specific sequence set. It may be used to restart the sequence numbering as of a specific date. The value of the attribute indicates the data source for the date. One data source for the attribute’s value is a field name. The field must be defined prior to the IDENTIFIER math variable and must be a date data type. Other data sources for the attribute's value may be the system date and an activity's effective date.       

 

The following table shows data that resides in the sequence data store for a specific sequence set.

Sequence example using Sequence date and Sequence number

Sequence Data Store for a Sequence Set

 

 

The Value text box allows entry of sequence names from AsSequence, such as PolicyNumber, SuspenseNumber, etc.

 

 

Copyright © 2009, 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices