}
}
- public startAutomaticTransactionGenerator(connectorIds?: number[]): void {
- if (!this.automaticTransactionGenerator) {
- this.automaticTransactionGenerator = AutomaticTransactionGenerator.getInstance(
+ public startAutomaticTransactionGenerator(
+ connectorIds?: number[],
+ automaticTransactionGeneratorConfiguration?: AutomaticTransactionGeneratorConfiguration
+ ): void {
+ this.automaticTransactionGenerator = AutomaticTransactionGenerator.getInstance(
+ automaticTransactionGeneratorConfiguration ??
this.getAutomaticTransactionGeneratorConfigurationFromTemplate(),
- this
- );
- }
+ this
+ );
if (!Utils.isEmptyArray(connectorIds)) {
for (const connectorId of connectorIds) {
this.automaticTransactionGenerator.startConnector(connectorId);
[
BroadcastChannelProcedureName.START_AUTOMATIC_TRANSACTION_GENERATOR,
BroadcastChannelProcedureName.STOP_AUTOMATIC_TRANSACTION_GENERATOR,
- ].includes(command) === true && delete requestPayload.connectorIds;
+ ].includes(command) === false && delete requestPayload.connectorIds;
}
private commandResponseToResponsePayload(