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

 

Identifier Fields

The Identifier field data type is typically used in the following situations:

 

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 200

 

 

Configuration Considerations

Keep in mind the following points when configuring Identifier field types.

  1. The Identifier field data type is applicable in any component that may contain the common entry Fields definition (screens, activity fields section). It does NOT apply where data must pass from one component to another as in spawns and updating business rules (CopyTo...) or in Math and ScreenMath. 

  2. An Identifier field cannot be used in ScreenMath. The field’s value is generated when the component is saved to the data store and is therefore not always available for ScreenMath.  

  3. Once an Identifier field has been generated using its unique set of attributes, it is treated as a text value everywhere else.  

  4. An identifier field may be passed to another activity through a spawn or updated to a component in an APE rule. The receiving field is defined as a text field and the data is passed as if it were text.   

  5. An identifier field may be source data for a math variable. It is treated as a text field with the math variable defined as a text data type. 

  6. The total character length of the identifier field is limited to the same size as a field of data type TEXT.  

  7. Each type is added to the Parts node in the Rules Palette Identifier Field - Parts window. Each type translates to a <Part> element in the XML. 

  8. When generating confirmation numbers used by the Confirmation screen, the Identifier field should be used to generate the original, or parent, activity confirmation number. The Identifier math variable should NOT be used. Use the Identifier math variable to generate confirmation numbers for spawned activities.
  9. Identifier Field configuration supports the use of the <ClearOnRecycle> sub-element. When <ClearOnRecycle> is set to Yes, the value of the Identifier Field will be on-load cleared if the activity is manually recycled. If the activity is re-done due to system-generated undo/redo, then the original Identifier Field value is retained.

  10. Numbers generated by the Identifier field element cannot be used as search criteria.

 

Define Identifier Field and Parts

Drag and drop the Identifier field from the Palette window onto the Fields Pane. The Field Properties window will open, which provides the means for configuring the field. Enter the field information such as field name, display name, etc., by clicking in the field and typing the information.    

 

Scroll down to the Parts line and click the box to the right of that line. This will open the Parts window, where the individual components of the unique identifier can be created. An explanation of each type is given in the section below.  

 

Field Properties Window for Identifier Field

Field Properties Window for Identifier Field

 

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 that is concatenated to the identifier field.

 

 

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 Identifier field’s value, it cannot be duplicated by any subsequent Identifier field using the same sequence set. A sequence number becomes part of the Identifier field’s value as the screen component or Activity Detail screen is persisted in the data store. 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 field. 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.       

 

An optional SEQUENCEDATE attribute 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 field 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 latter is applicable to transaction configuration only.      

 

The following image 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

 

 

 

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