Fired after CopybookParser is initialized and before parsing starts.
Can be used to subsribe to parsing events via parser.getEventEmitter()
Returns the following values:
parser: Instance of CopybookParser that is used to parse the provided copybookTo receive events related to Copybook parsing, use the parser property, see IParsingEvent for available events
Fired after the copybook provided when creating a transaction package has been parsed Returns the following values:
parser: Instance of CopybookParser that is used to parse the provided copybookparsedCopybook: Array of DataItem containing the parsed copybook valuesFired when a new transaction is created after the TransactionPackage has been initialized by calling TransactionPackage.createEmptyTransaction
The following values are returned:
parser: Instance of CopybookParser that is used to parse the provided copybooknewTransaction: ITransaction that has recently been createdtransactions: Array of ITransaction containing the transactions that are added to the current transaction packageFired when a transaction package is stored to a file.
The following values will be returned:
parser: Instance of CopybookParser that is used to parse the provided copybooktransactions: Array of ITransaction containing all the transaction that will be written to the output filebuffer: Buffer object containing the raw data that will be written to fileoutputPath: Path where the output will be savedThis event is triggered:
The following values will be returned:
parser: Instance of CopybookParser that is used to parse the provided copybooktransactions: Array of ITransaction that are loadedtransactions is possibly an empty array when no transactions are provided. TransactionPackage.load will check
if data is provided in the buffer. Within the TransactionPackage constructor, an empty transactions array is created when
no transactions are provided
ITransactionPackageEvent interface is a helper interface to define the events that are submitted during interaction with a TransactionPackage test