|
|
@@ -36,7 +36,13 @@ public final class HandlingEventServiceImpl implements HandlingEventService {
|
|
36
|
36
|
@Transactional
|
|
37
|
37
|
public void register(HandlingEventRegistrationAttempt attempt) {
|
|
38
|
38
|
try {
|
|
39
|
|
- final HandlingEvent event = handlingEventFactory.createHandlingEvent(attempt.getDate(), attempt.getTrackingId(), attempt.getVoyageNumber(), attempt.getUnLocode(), attempt.getType());
|
|
|
39
|
+ final HandlingEvent event = handlingEventFactory.createHandlingEvent(
|
|
|
40
|
+ attempt.getDate(),
|
|
|
41
|
+ attempt.getTrackingId(),
|
|
|
42
|
+ attempt.getVoyageNumber(),
|
|
|
43
|
+ attempt.getUnLocode(),
|
|
|
44
|
+ attempt.getType()
|
|
|
45
|
+ );
|
|
40
|
46
|
handlingEventRepository.save(event);
|
|
41
|
47
|
systemEvents.cargoWasHandled(event);
|
|
42
|
48
|
} catch (CannotCreateHandlingEventException e) {
|