Creating the Model with an Activity marked for Quality Assurance

In a dynamic Web project designed to deploy Stardust models to run in the Stardust Portal, create the model, e.g. QAModel, with an activity which we will use to perform quality assurance on.

For detailed information on creating dynamic Web projects for usage with the Stardust Portal, please refer to the Rapid Application Development guide.

Proceed as follows:

Creating the Workflow

  1. Create a process definition (or rename the default process definition) called QAUseFormula.
  2. Open the process definition diagram.
  3. Create a manual trigger followed by a manual activity, e.g. Create Account.
  4. Create a subsequent manual activity, e.g. Next Activity.
  5. Create a roles Account and make it performer of the manual trigger and Create Account.
  6. Create a role QA Operator and make it performer of activity Next Activity.
  7. Create the following two primitive data:
  8. Create In- and Out-data-mappings for both data to activity Create Account.

The workflow should now look like in the following diagram:

Diagram
Figure: Diagram with created workflow.

Setting Quality Assurance Criteria

Now we set the criteria for quality assurance in the property page of activity Create Account:

  1. Select Quality Assurance in the left pane of the property page.
  2. In the Quality Assurance pane, choose role QA Operator from the drop-down list as quality assurance operator.
  3. Leave the probability value as 100%.
  4. Enter the following formula:
    var accnr=AccountNumber;
    var accname=AccountName;
    if ( (accnr > 9999) || (accnr < 1000))
    {
        true;
    }
    else if ( accname == "" )
    {
        true;
    }
    else 
    {
        false;
    }
        
  5. Click Apply to apply the criteria.


Figure: Quality Assurance Criteria

Setting Quality Assurance Codes

Now we set quality assurance codes that can be used to be added as notes when a quality assurance on an activity instance fails. These can be set in the model property page:

  1. Open the model property page.
  2. Select Quality Assurance Codes in the left pane.
  3. Click Add to add a new code.

  4. Enter the following two error codes:

The error codes are now listed in the Quality Assurance Codes tree:


Figure: New Error Codes listed in the tree

Now mark in the activity that these codes should be used:

  1. Open the property page of activity Create Account.
  2. Select Quality Assurance Codes in the left pane.
  3. In the Quality Assurance Codes section, select the two error codes for the account.
  4. Apply the selection.

Error Codes
Figure: Select error codes to be used.