Link

Transaction API

Table of contents

  1. Description
  2. Features
    1. parameters
    2. abortTransaction
  3. Considerations and Guidelines

Since: 0.12.0 Context: API Category: Context specific —

Description

Transaction API allows to extend MI transactions, overwrite parameters. Can be used to set, retrieve or change a parameter and skip current transaction.

Features

parameters

For retieving and changing MI transaction buffer or data structure.

Example:

public void main() {
    String SLRORN = transaction.parameters.SLRORN
    String SLRSCD = transaction.parameters.OAORNO
    if (SLRORN.isBlank() || SLRSCD.isBlank()) {
      return
    }
}

abortTransaction

This method allows to skip the current transaction and takes three string parameters : field, msid, data.

Example:

public void main() {
    if (transaction.parameters.USID=="TEST") {
      transaction.abortTransaction("USID","ER001","ER001");
    }    
}

Considerations and Guidelines