AutomaticCaseNumber
This business rule generates the Case Number when a new case is created. In order for this functionality to be invoked the <AutomaticCaseNumber> tag should be set to Yes or Optional in the CaseScreen business rule.
|
Element/Tag |
Attributes |
Parent Element |
Description |
Element/Attribute Value |
|---|---|---|---|---|
|
<AutomaticCaseNumber> |
|
The opening and closing tag for the rule. |
|
|
|
<Part> |
|
<AutomaticCaseNumber> |
Indicates the value of the field parts to define and format the specified field, value, or sequence. |
Value| FieldName | SequenceName Defines the field or value to be used in generating the Case number. |
|
TYPE |
|
<AutomaticCaseNumber> |
VALUE - Defines a set value and what the value will be for the Case Number. The tag must contain a value. SYSTEMDATE- Indicates that a portion of the current date will be used in the creation of the Case Number. Used in conjunction with the FORMAT attribute. FIELD- Indicates that a value from a field will be included in the Case Number. The Part element specifies the field being used. The LEFT, RIGHT, and MID attributes may be used to select parts of the field. Note: Only Dynamic fields can be used with this element. SEQUENCE- Indicates the value is in AsSequence table. The value of the table is inserted according to the number of digits specified in the FORMAT attribute. The value of the Part tag is the SequenceName. |
|
|
FORMAT |
|
<AutomaticCaseNumber> |
Indicates the formatting to be performed on the type attributes. For TYPE="SYSTEMDATE": YY - Indicates that the last two digits of the current year should be used. MM - Indicates that the current month number should be used. DD - Indicates that the current day number should be used . For TYPE=SEQUENCE: '0xxxxx'- Indicates the number of digits to be generated in the sequence number where x represents '0'. For example if FORMAT is `000000' and generated sequence number is 1111, then after formatting it will become `001111' |
|
|
LEFT |
|
<AutomaticCaseNumber> |
LEFT=n Selects the leftmost n digits of the field value for the part. |
|
|
RIGHT |
|
<AutomaticCaseNumber> |
RIGHT=n Selects the rightmost n digits of the field value for the part. |
|
|
MID |
|
<AutomaticCaseNumber> |
Mid=m,n Selects the middle characters of the field value, from position m to position n. This is a comma-separated string of two numbers specifying the starting and ending index of the characters to be selected for the part. |
|
XML Example
<AutomaticCaseNumber>
<Part TYPE="VALUE">CAS</Part>
<Part TYPE="SYSTEMDATE" FORMAT="YY"></Part>
<Part TYPE="SEQUENCE" FORMAT="000000">CaseNumber</Part>
</AutomaticCaseNumber>
Note: Builds a Case number similar to this format: CAS043000001.
XML Schema
<AutomaticCaseNumber>
<Part TYPE="[VALUE|SYSTEMDATE|FIELD|SEQUENCE]"
FORMAT="[YY|0xxxxx]"
LEFT="[Integer]"
MID="[Integer,Integer]"
RIGHT="[Integer]"
SEQUENCEDATE="[SYSTEMDATE|FieldName|VariableName]">[Value|FieldName|SequenceName]</Part>
</AutomaticCaseNumber>