/** * {@inheritDoc} */ @Override public void handle(StartTransactionRequestedEvent event, CorrelationToken correlationToken) { LOG.info("StartTransactionRequestedEvent"); boolean startTransactionAccepted = chargingStationOcpp15Client.startTransaction(event.getChargingStationId(), event.getIdentifyingToken(), event.getEvseId()); if (startTransactionAccepted){ domainService.informRequestStartTransactionAccepted(event.getChargingStationId(), event.getEvseId(), event.getIdentifyingToken(), event.getIdentityContext(), correlationToken); } else { domainService.informRequestStartTransactionRejected(event.getChargingStationId(), event.getEvseId(), event.getIdentifyingToken(), event.getIdentityContext(), correlationToken); } }
/** * {@inheritDoc} */ @Override public void handle(StartTransactionRequestedEvent event, CorrelationToken correlationToken) { LOG.info("OCPP 1.2 StartTransactionRequestedEvent"); chargingStationOcpp12Client.startTransaction(event.getChargingStationId(), event.getIdentifyingToken(), event.getEvseId()); }
@EventHandler public void handle(StartTransactionRequestedEvent event, @MetaData(CorrelationToken.KEY) CorrelationToken correlationToken) { LOG.info("StartTransactionRequestedEvent"); OcppRequestHandler ocppRequestHandler = getOcppRequestHandler(event.getChargingStationId()); if (ocppRequestHandler != null) { ocppRequestHandler.handle(event, correlationToken); } }
@CommandHandler public void handle(RequestStartTransactionCommand command, MetaData metaData) { checkCommandAllowed(command.getIdentityContext(), command.getClass()); checkCommunicationAllowed(); apply(new StartTransactionRequestedEvent(this.id, this.protocol, command.getIdentifyingToken(), command.getEvseId(), command.getIdentityContext()), metaData); }
@Override public void handle(StartTransactionRequestedEvent event, CorrelationToken correlationToken) { LOG.info("StartTransactionRequestedEvent"); ocppJsonService.remoteStartTransaction(event.getChargingStationId(), event.getEvseId(), event.getIdentifyingToken(), correlationToken); }