startTransaction method

bool startTransaction([
  1. String? tname
])

Call Diagram#startTransaction with the given transaction name. This always sets #transactionResult to null.

This is normally called in an override of #doActivate, if the tool modifies the model, along with a call to #stopTransaction in an override of #doDeactivate. Alternatively, you can surround a block of code that sets the #transactionResult with calls to startTransaction and stopTransaction. @param {string=} tname a string describing the transaction. @return {boolean} the value of the call to Diagram#startTransaction.

Implementation

_i2.bool startTransaction([_i2.String? tname]) => _i4.callMethod(
      this,
      'startTransaction',
      [tname ?? _i5.undefined],
    );