Transaction validation rules

The transaction importer follows certain validation rules and guarantees the correctness of BTT transaction definition files.

Types of rules

There are three general types of transaction validation rules: rules checking necessary attributes, rules checking file validation, and rules checking incorrect information. For conditions that involves missing necessary attributes, you need to add the missing attributes. For conditions that involves file validations, you need to check related files. For conditions that involves incorrect information, you need to correct them according to the transaction validation rules.

Rules

Table 1. Transaction validation rules
Type Key Message type Tip messages Implement class
Attribute required Attribute Required Constraint ERROR The"{0}" attribute of {1} [{2}] is required and should not be null. com.ibm.btt.tools.transaction.validate.constraint.AttributeRequiredConstraint
incorrect information Context Constraint ERROR The {2} attribute of {0} [{1}] should be {3}. com.ibm.btt.tools.transaction.validate.constraint.AttributeTypeConstraint
Attribute required Context Constraint ERROR The context [{0}] should have one refKColl or refType as child element. com.ibm.btt.tools.transaction.validate.constraint.ContextConstraint
Attribute required RefKColl Constraint ERROR The refKColl [{0}] is not found. com.ibm.btt.tools.transaction.validate.constraint.RefKCollConstraint
Attribute required Reference Constraint ERROR The {0} refId attribute should not be null. com.ibm.btt.tools.transaction.validate.constraint.ReferenceConstraint
Attribute required Formatter Constraint ERROR The fmtDef [{0}] should at least have one child element com.ibm.btt.tools.transaction.validate.constraint.FormatterConstraint
Attribute required RefFormat Constraint ERROR The refFormat [{0}] is not found. com.ibm.btt.tools.transaction.validate.constraint.RefFormatConstraint
Attribute required iColl Constraint ERROR The iColl [{0}] should have one child element. com.ibm.btt.tools.transaction.validate.constraint.IndexedCollectionConstraint
Attribute required RefData Constraint ERROR The refData [{0}] is not found. com.ibm.btt.tools.transaction.validate.constraint.RefDataConstraint
Attribute required StringToStringMapEntry ERROR Both key and value should not be null in iniValue or param. com.ibm.btt.tools.transaction.validate.constraint.StringToStringMapEntryConstraint
Incorrect information IsolationDiagram WARNING State [{0}] is an isolated node from other states. com.ibm.btt.tools.transaction.validate.constraint.IsolationDiagramConstraint
Incorrect information StartDiagram Constraint ERROR Diagram should have one initial node, but your diagram has {0}. com.ibm.btt.tools.transaction.validate.constraint.StartDiagramConstraint
Incorrect information EndDiagram Constraint ERROR Diagram should have at least one final node. com.ibm.btt.tools.transaction.validate.constraint.EndDiagramConstraint
Incorrect information Context Id Constraint ERROR The context [{0}] should be unique. com.ibm.btt.tools.transaction.validate.constraint.ContextIdConstraint
Incorrect information Formatter Id Constraint ERROR The fmtDef [{0}] should be unique. com.ibm.btt.tools.transaction.validate.constraint.FormatterIdConstraint
Incorrect information State Id Constraint ERROR The state [{0}] should be unique. com.ibm.btt.tools.transaction.validate.constraint.StateIdConstraint
Incorrect information DataElement Id Constraint ERROR The DataElement [{0}] should be unique. com.ibm.btt.tools.transaction.validate.constraint.DataElementIdConstraint
Attribute required Attribute Context Constraint ERROR The "{3}" attribute "{2}" of {0} [{1}] is not found. com.ibm.btt.tools.transaction.validate.constraint.AttributeContextConstraint
Incorrect information Operation Id Constraint ERROR The operation [{0}] should be unique. com.ibm.btt.tools.transaction.validate.constraint.OperationIdConstraint
Incorrect information OperationStep Id Constraint ERROR The opStep [{0}] should be unique enclosed with the same operation. com.ibm.btt.tools.transaction.validate.constraint.OpStepIdConstraint
Incorrect information StringToStringMapEntry Key Contraint WARNING InitValue or Param key"{0}" should be unique. com.ibm.btt.tools.transaction.validate.constraint.StringToStringMapEntryKeyConstraint
Incorrect information OperationStep Switch Constraint ERROR The opStep switch"On{0}Do" should be unique enclosed with the same opstep. com.ibm.btt.tools.transaction.validate.constraint.OpStepSwitchConstraint
Incorrect information Reference Cycle Constraint ERROR The {0} [{1}] cannot refer to its parent. com.ibm.btt.tools.transaction.validate.constraint.ReferenceCycleConstraint
Incorrect information State Type TypeIdInfo Constraint ERROR If the state [{0}] type attribute is "page", the attribute "typeIdInfo" is required and should not be null. com.ibm.btt.tools.transaction.validate.constraint.ReferenceCycleConstraint
Attribute required RefService Constraint ERROR The refService [{0}] is not found. com.ibm.btt.tools.transaction.validate.constraint.RefServiceConstraint
Attribute required RefType Constraint ERROR The refType [{0}] is not found. com.ibm.btt.tools.transaction.validate.constraint.RefTypeConstraint
Attribute required Data RefType Constraint ERROR The refType"{0}" attribute of data [{1}] is not found. com.ibm.btt.tools.transaction.validate.constraint.DataRefTypeConstraint
Attribute required Attribute MapFormat Constraint ERROR The"{3}" attribute "{2}" of {0} [{1}] is not found. com.ibm.btt.tools.transaction.validate.constraint.AttributeMapFormatConstraint
Incorrect information Service Id Constraint ERROR The service [{0}] should be unique. com.ibm.btt.tools.transaction.validate.constraint.ServiceIdConstraint
Incorrect information Operation InitValues Constraint ERROR The operation initValue'{0}' should be unique enclosed with the same operation. com.ibm.btt.tools.transaction.validate.constraint.OperationInitValuesConstraint
File validation Import File Existance Constraint ERROR The import file [{0}] does not exist. com.ibm.btt.tools.transaction.validate.constraint.ImportFileExistanceConstraint
Incorrect information Type Constraint ERROR The type [{0}] should at least have one child element com.ibm.btt.tools.transaction.validate.constraint.TypeConstraint
Incorrect information Type Default Descriptor Constraint ERROR The type [{0}] should at least have one descriptor with id "typeDefault" com.ibm.btt.tools.transaction.validate.constraint.TypeDefaultDescriptorConstraint
Attribute required Type Descriptor RefType Constraint ERROR The refType"{0}" attribute of Descriptor [{1}] is not found. com.ibm.btt.tools.transaction.validate.constraint.TypeDescriptorRefTypeConstraint
File validation Import File Recursion Constraint ERROR The file [{0}] exists import recursion. com.ibm.btt.tools.transaction.validate.constraint.ImportFileRecursionConstraint