RT 6.0.0 Documentation

RT::Record::Role::Scrip

NAME

RT::Record::Role::Scrip - Common methods for records that support scrips

DESCRIPTION

This role implements scrip related methods for records including Articles, Assets, and Tickets.

REQUIRES

RT::Record::Role

PROVIDES

RanTransactionBatch

Acts as a guard around running TransactionBatch scrips.

Should be false until you enter the code that runs TransactionBatch scrips

Accepts an optional argument to indicate that TransactionBatch Scrips should no longer be run on this object.

TransactionBatch

Returns an array reference of all transactions created on this ticket during this ticket object's lifetime or since last application of a batch, or undef if there were none.

Only works when the UseTransactionBatch config option is set to true.

ApplyTransactionBatch

Applies scrips on the current batch of transactions and shinks it. Usually batch is applied when object is destroyed, but in some cases it's too late.

← Back to index