You are here: User Customizations > Configure Your Own Verification Actions

Configure Your Own Verification Actions

You can check your model for syntactical and methodical accuracy using single verifications you have programmed yourself. You can integrate these single verifications into the Model Verification Wizard using a verification action.

Familiarizing Yourself with Verification Actions

When using a model, the quality of the model is crucial. However, there should be no constraints on the modeler when creating a model. Especially when the modeling is being carried out in a team, it is necessary to ensure the model quality. Automated model verification is therefore necessary, which verifies the entire model or a section of it in accordance with set rules.

The person setting up the verifications creates a verification action which is available in the wizard to all model users (but not to the model guest). The localized name of the verification action and the localized description are shown in the Model Verification Wizard based on the interface language set ($INOLANG).

A verification action comprises single verifications that can be grouped by function.

A single verification can be a verification for a particular customer, programmed in a .NET language or in Java. You can also integrate verification routines as single verifications.

Editing Verification Configuration

Configuration

In order to be able to use a verification action, it must be contained in the configuration. The verification configuration can contain multiple verification actions.

The configuration is contained in the $INODIR/inoverify.xml file.

An example of the file is as follows:

The file must be manually maintained by the person setting up the verifications. Following any changes to the file, Innovator must be restarted so that the changes can take effect; this is because the configuration is only read by Innovator on start. The schema is contained in the $INODIR/inoverify.xsd file. The schema determines the namespace (XML-Namespace http://www.mid.de/inoverify.

The following can be configured on the verification configuration (XML element VerificationConfiguration):

Verification Action

The following can be configured on the verification action (XML element VerificationAction):

  • List of verification groups (XML element Groups)
  • Localized name of the verification action (XML element Name)
  • Localized description of the verification action (XML element Description)
  • Localized name of the category to which the verification action is assigned (XML element Category)
  • Name of the method (XML element Method)

Verification Group

The following can be configured on a verification group (XML element VerificationGroup):

  • Localized name of the verification group (XML element Name)
  • List of single verifications. This list includes the single verifications for Java and .NET languages and for verification routines (XML element Singles)

For the localized text, in each case the English text can be maintained in the subordinate XML element English and the German text can be maintained in the subordinate XML element German.

Configuring Single Verifications

Generic Single Verification

For a generic single verification programmed in a .NET language or in Java, you will create an XML element SingleVerification with the attribute xsi:type=JavaGenericVerification or xis:type=[Name of C# class]. Here you can configure the following:

  • Localized name of the verification (XML element Name)
  • Type of verification (XML element Type) with the content
    • CLR (C# verification)
    • JavaGeneric (generic Java verification)
  • Localized description of the single verification (XML element Description)
  • Qualified name of the C# class or Java class being implemented (XML element Check)
  • Localized message text, displayed in the event of an error (XML element Message)
  • Type of message (error, warning, information), displayed in the event of an error (XML element MessageKind)
  • List of parameters provided when called (XML element Parameters with subordinate XML elements VerifyParameter)
    • Name of the parameter (XML element Name)
    • Value of the parameter (XML element Value)
  • List of stereotypes having model elements that the single verification can be applied to (XML element Stereotypes with the subordinate XML elements VerifyStereotype)
    • element type of the stereotype. The API name is used, which you can view using  Help>Info, for example (XML element MetaType)
    • Defining profile of the stereotype (XML element Profile)
    • Name of the Stereotype (XML element Stereotype)
    • Verification number(XML element Id)
    • Whether the verification is active for this stereotype, i.e. should it run. (XML element IsActive)

Non-Generic Single Verification

For a verification programmed in Java that is not generic, create an XML element SingleVerification with the attribute xsi:type=JavaVerification. Here you can configure the following:

  • Type of verification (XML element Type) with the content Java
  • Whether the verification is active, i.e. should it run. (XML element IsActive)
  • Qualified name of the C# class or Java class being implemented (XML element Check)

Verification routine

For a verification routine, create an XML element SingleVerification with the attribute xsi:type=VerificationRoutine. Here you can configure the following:

  • Localized name of the verification routine. Use the name of the verification routine from the model configuration here. (XML element Name)
  • Type of verification (XML element Type) with the content Server
  • Whether the verification is active, i.e. should it run. (XML element IsActive)

For the localized text, in each case the English text can be maintained in the subordinate XML element English and the German text can be maintained in the subordinate XML element German.

 

 

© 1986-2014 MID GmbH Nuremberg Germany. DIN EN 9001 certified. All rights reserved.