|
|
@@ -204,10 +204,15 @@ public class ProjectDeclareKFBAction { |
|
|
|
project.setStatus(ProjectStatusEnum.SCHEME_UNDER_REVIEW.getCode()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@OnTransition(source = "TO_BE_PURCHASED", target = "UNDER_CONSTRUCTION") |
|
|
|
@OnTransition(source = "TO_BE_PURCHASED", target = "OPERATION") |
|
|
|
public void PURCHASE_PUT_ON_RECORD(Message<ProjectStatusChangeEvent> message) { |
|
|
|
Project project = (Project) message.getHeaders().get(PROJECT_DECLARE); |
|
|
|
project.setStatus(ProjectStatusEnum.OPERATION.getCode()); |
|
|
|
} |
|
|
|
|
|
|
|
@OnTransition(source = "OPERATION", target = "UNDER_CONSTRUCTION") |
|
|
|
public void START_TO_WORK(Message<ProjectStatusChangeEvent> message) { |
|
|
|
Project project = (Project) message.getHeaders().get(PROJECT_DECLARE); |
|
|
|
project.setStatus(ProjectStatusEnum.UNDER_CONSTRUCTION.getCode()); |
|
|
|
} |
|
|
|
|
|
|
|