Skip to main content
Kinetic Community

Bridge Model

The model function is used to create a Bridge Model.

Details

The model function is a root function in KURL.  Meaning that it is not called within a code block passed to another function.

Below are the functions available within the model function.

name Sets the name attribute of the Bridge Model.  This attribute is required.  This attribute must be unique among other Bridge Models.
status Sets the status attribute of the Bridge Model.  This attribute has 2 valid values "Active" and "Inactive".  This attribute defaults to "Active" if not set.
qualification Creates a Bridge Qualification and relates it to the Bridge Model.
attribute Creates a Bridge Attribute and relates it to the Bridge Model.

Bridge Attribute

The attribute function is used to create a Bridge Attribute.  This function is available within the code block passed to the model function above.

Below are the functions available within the attribute function.

name Sets the name attribute of the Bridge Attribute.  This attribute is required.  This attribute must be unique among other Bridge Attributes related to the same Bridge Model.

Bridge Qualification

The qualification function is used to create a Bridge Qualification.  This function is available within the code block passed to the model function above.

Below are the functions available within the qualification function.

name Sets the name attribute of the Bridge Qualification.  This attribute is required.  This attribute must be unique among other Bridge Qualifications related to the same Bridge Model.
result_type Sets the result type attribute of the Bridge Qualification.  This attribute is required.  This attribute has 2 valid values "Single" and "Multiple".
parameter Creats a Bridge Parameter and relates it to the Bridge Qualification

Bridge Parameter

The parameter function is used to create a Bridge Parameter.  This function is available within the code block passed to the qualification function above.

Below are the functions available within the parameter function.

name Sets the name attribute of the Bridge Parameter.  This attribute is required.  This attribute must be unique among other Bridge Parameters related to the same Bridge Qualification.
notes Sets the notes attribute of the Bridge Parameter.

Examples

model {                      # Create a new bridge model
  name "Person"              # Name the bridge model
  attribute {                # Create an attribute for this model
    name "First Name"        # Name the attribute
  }
  attribute {                # Create another attribute
    name "Last Name"         # Name the attribute
  }
  qualification {            # Create a qualification for this model
    name "By Name"           # Name the qualification
    result_type "Multiple"   # Set the result type to multiple
    parameter {              # Add a parameter to the qualification
      name "First Name"      # Name the parameter
    }
    parameter {              # Add another parameter
      name "Last Name"       # Name the other parameter
    }
  }
  qualification {            # Create another qualification, it takes no parameters
    name "All"               # Name the qualification
    result_type "Multiple"   # Set the result type to multiple
  }
}

This example demonstrates the use of the model, attribute, qualification, and parameter functions described above.