Commit 8c63707c authored by Etienne Charlier's avatar Etienne Charlier
Browse files

Rename REASONNING into REASONING

parent 43d22464
......@@ -64,12 +64,12 @@ public class PaasageModelController extends GenericApiController<PaasageModel, P
passageModelStateConfigForUsers.configure(PaasageModel.State.READY_TO_REASON)
.ignore(PaasageModel.Action.NO_ACTION)
.permit(PaasageModel.Action.START_REASONNING,PaasageModel.State.REASONING);
.permit(PaasageModel.Action.START_REASONING,PaasageModel.State.REASONING);
passageModelStateConfigForUsers.configure(PaasageModel.State.REASONING)
.permit(PaasageModel.Action.REASONNED_NO_PLAN, PaasageModel.State.NO_SOLUTION)
.permit(PaasageModel.Action.REASONNED_ONE_PLAN, PaasageModel.State.READY_TO_DEPLOY)
.permit(PaasageModel.Action.REASONNED_MULTI_PLANS,PaasageModel.State.READY_TO_CHOOSE)
.permit(PaasageModel.Action.REASONED_NO_PLAN, PaasageModel.State.NO_SOLUTION)
.permit(PaasageModel.Action.REASONED_ONE_PLAN, PaasageModel.State.READY_TO_DEPLOY)
.permit(PaasageModel.Action.REASONED_MULTI_PLANS,PaasageModel.State.READY_TO_CHOOSE)
.ignore(PaasageModel.Action.NO_ACTION);
passageModelStateConfigForUsers.configure(PaasageModel.State.NO_SOLUTION)
......@@ -100,12 +100,12 @@ public class PaasageModelController extends GenericApiController<PaasageModel, P
.permit(PaasageModel.Action.XMI_UPLOADED, PaasageModel.State.READY_TO_REASON);
passageModelStateConfigForSystem.configure(PaasageModel.State.READY_TO_REASON)
.permit(PaasageModel.Action.START_REASONNING,PaasageModel.State.REASONING);
.permit(PaasageModel.Action.START_REASONING,PaasageModel.State.REASONING);
passageModelStateConfigForSystem.configure(PaasageModel.State.REASONING)
.permit(PaasageModel.Action.REASONNED_NO_PLAN, PaasageModel.State.NO_SOLUTION)
.permit(PaasageModel.Action.REASONNED_ONE_PLAN, PaasageModel.State.READY_TO_DEPLOY)
.permit(PaasageModel.Action.REASONNED_MULTI_PLANS,PaasageModel.State.READY_TO_CHOOSE);
.permit(PaasageModel.Action.REASONED_NO_PLAN, PaasageModel.State.NO_SOLUTION)
.permit(PaasageModel.Action.REASONED_ONE_PLAN, PaasageModel.State.READY_TO_DEPLOY)
.permit(PaasageModel.Action.REASONED_MULTI_PLANS,PaasageModel.State.READY_TO_CHOOSE);
passageModelStateConfigForSystem.configure(PaasageModel.State.NO_SOLUTION)
.permit(PaasageModel.Action.UPLOAD_XMI, PaasageModel.State.READY_TO_REASON);
......@@ -199,9 +199,9 @@ public class PaasageModelController extends GenericApiController<PaasageModel, P
LOGGER.info("Action == NO_ACTION: just update the resource, to not publish message");
return;
}
if (updated.getAction().equals(PaasageModel.Action.REASONNED_ONE_PLAN))
if (updated.getAction().equals(PaasageModel.Action.REASONED_ONE_PLAN))
{
LOGGER.info("Action == REASONNED_ONE_PLAN: just update the resource, to not publish message. We have to wait for the user");
LOGGER.info("Action == REASONED_ONE_PLAN: just update the resource, to not publish message. We have to wait for the user");
return;
}
messagingService.publishMessage("PAASAGE", message);
......
......@@ -51,10 +51,10 @@ public class PaasageModel extends Model{
CREATE, // Resource being created by user
UPLOAD_XMI, // XMI being uploaded by user
XMI_UPLOADED, // XMI file uploaded into CDO
START_REASONNING, // Reasoning started by user
REASONNED_NO_PLAN, // Reason outcome: NO Deployment PLAN (by PaaSage)
REASONNED_ONE_PLAN, // Reason outcome: One Deployment plan (by PaaSage)
REASONNED_MULTI_PLANS, // Reason outcome: Multiple Deployment plans (by PaaSage)
START_REASONING, // Reasoning started by user
REASONED_NO_PLAN, // Reason outcome: NO Deployment PLAN (by PaaSage)
REASONED_ONE_PLAN, // Reason outcome: One Deployment plan (by PaaSage)
REASONED_MULTI_PLANS, // Reason outcome: Multiple Deployment plans (by PaaSage)
CHOOSE_PLAN, // Plan being chosen by user
DEPLOY, // Deployment started by user
FINISH_DEPLOYMENT, // Deployment finished ( by PaaSage)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment