@Test public void test_for_update_eviction_for_cancel_status() { final AgreementRequest agreementRequest = getAgreementRequest(); agreementRequest.getAgreement().getWorkflowDetails().setAction("Cancel"); final Agreement agreement = agreementService.updateEviction(agreementRequest); assertEquals("454", agreement.getCouncilNumber()); assertEquals(Status.CANCELLED, agreement.getStatus()); }
public Agreement updateEviction(final AgreementRequest agreementRequest) { final Agreement agreement = agreementRequest.getAgreement(); log.info("update eviction agreement ::" + agreement); enrichAgreementWithWorkflowDetails(agreement, agreementRequest.getRequestInfo(), Status.EVICTED); final TaskResponse taskResponse = workFlowRepository.updateWorkflow(agreementRequest); log.info("the taskResponse from workflow update : " + taskResponse); return agreement; }
AgreementService { public Agreement updateEviction(final AgreementRequest agreementRequest) { final Agreement agreement = agreementRequest.getAgreement(); log.info("update eviction agreement ::" + agreement); enrichAgreementWithWorkflowDetails(agreement, agreementRequest.getRequestInfo(), Status.EVICTED); final TaskResponse taskResponse = workFlowRepository.updateWorkflow(agreementRequest); log.info("the taskResponse from workflow update : " + taskResponse); return agreement; } }
AgreementService { public Agreement updateEviction(final AgreementRequest agreementRequest) { final Agreement agreement = agreementRequest.getAgreement(); log.info("update eviction agreement ::" + agreement); enrichAgreementWithWorkflowDetails(agreement, agreementRequest.getRequestInfo(), Status.EVICTED); final TaskResponse taskResponse = workFlowRepository.updateWorkflow(agreementRequest); log.info("the taskResponse from workflow update : " + taskResponse); return agreement; }  }
AgreementService { public Agreement updateEviction(final AgreementRequest agreementRequest) { final Agreement agreement = agreementRequest.getAgreement(); log.info("update eviction agreement ::" + agreement); enrichAgreementWithWorkflowDetails(agreement, agreementRequest.getRequestInfo(), Status.EVICTED); final TaskResponse taskResponse = workFlowRepository.updateWorkflow(agreementRequest); log.info("the taskResponse from workflow update : " + taskResponse); return agreement; }  boolean isAgreementExist(final String code); List<Agreement> getAgreementsForAssetId(final Long assetId); List<Agreement> getAgreementsForAssetIdAndFloor(final Agreement agreement, final Long assetId); List<Agreement> getAllHistoryAgreementsForAsset(final Agreement agreement); Agreement createAgreement(final AgreementRequest agreementRequest); Agreement modifyAgreement(final AgreementRequest agreementRequest); Agreement createEviction(final AgreementRequest agreementRequest); Agreement createCancellation(final AgreementRequest agreementRequest); Agreement createRenewal(final AgreementRequest agreementRequest); Agreement createObjection(final AgreementRequest agreementRequest); Agreement createJudgement(final AgreementRequest agreementRequest); Agreement createRemission(final AgreementRequest agreementRequest); Agreement updateAgreement(final AgreementRequest agreementRequest); Agreement updateCancellation(final AgreementRequest agreementRequest); Agreement updateEviction(final AgreementRequest agreementRequest); Agreement updateObjectionAndJudgement(final AgreementRequest agreementRequest); Agreement updateRenewal(final AgreementRequest agreementRequest); Agreement updateRemission(final AgreementRequest agreementRequest); Agreement saveRemission(final AgreementRequest agreementRequest); List<Agreement> searchAgreement(final AgreementCriteria agreementCriteria, final RequestInfo requestInfo); List<Agreement> searchAgreementByAgreementNo(final AgreementCriteria agreementCriteria, final RequestInfo requestInfo); List<Agreement> getAgreementsByAgreementNumber(final AgreementCriteria agreementCriteria,
            final RequestInfo requestInfo); List<Demand> prepareLegacyDemands(final AgreementRequest agreementRequest); List<Demand> prepareDemands(final AgreementRequest agreementRequest); List<Demand> getDemands(final AgreementRequest agreementRequest); void updateAdvanceFlag(final Agreement agreement); Date getExpiryDate(final Agreement agreement); String checkRenewalStatus(final AgreementRequest agreementRequest); String checkObjectionStatus(final AgreementRequest agreementRequest); void setDetailsByAssetCategory(final Agreement agreement); Date getEffectiveFinYearToDate(); }
AgreementService { public Agreement updateEviction(final AgreementRequest agreementRequest) { final Agreement agreement = agreementRequest.getAgreement(); log.info("update eviction agreement ::" + agreement); enrichAgreementWithWorkflowDetails(agreement, agreementRequest.getRequestInfo(), Status.EVICTED); final TaskResponse taskResponse = workFlowRepository.updateWorkflow(agreementRequest); log.info("the taskResponse from workflow update : " + taskResponse); return agreement; }  boolean isAgreementExist(final String code); List<Agreement> getAgreementsForAssetId(final Long assetId); List<Agreement> getAgreementsForAssetIdAndFloor(final Agreement agreement, final Long assetId); List<Agreement> getAllHistoryAgreementsForAsset(final Agreement agreement); Agreement createAgreement(final AgreementRequest agreementRequest); Agreement modifyAgreement(final AgreementRequest agreementRequest); Agreement createEviction(final AgreementRequest agreementRequest); Agreement createCancellation(final AgreementRequest agreementRequest); Agreement createRenewal(final AgreementRequest agreementRequest); Agreement createObjection(final AgreementRequest agreementRequest); Agreement createJudgement(final AgreementRequest agreementRequest); Agreement createRemission(final AgreementRequest agreementRequest); Agreement updateAgreement(final AgreementRequest agreementRequest); Agreement updateCancellation(final AgreementRequest agreementRequest); Agreement updateEviction(final AgreementRequest agreementRequest); Agreement updateObjectionAndJudgement(final AgreementRequest agreementRequest); Agreement updateRenewal(final AgreementRequest agreementRequest); Agreement updateRemission(final AgreementRequest agreementRequest); Agreement saveRemission(final AgreementRequest agreementRequest); List<Agreement> searchAgreement(final AgreementCriteria agreementCriteria, final RequestInfo requestInfo); List<Agreement> searchAgreementByAgreementNo(final AgreementCriteria agreementCriteria, final RequestInfo requestInfo); List<Agreement> getAgreementsByAgreementNumber(final AgreementCriteria agreementCriteria,
            final RequestInfo requestInfo); List<Demand> prepareLegacyDemands(final AgreementRequest agreementRequest); List<Demand> prepareDemands(final AgreementRequest agreementRequest); List<Demand> getDemands(final AgreementRequest agreementRequest); void updateAdvanceFlag(final Agreement agreement); Date getExpiryDate(final Agreement agreement); String checkRenewalStatus(final AgreementRequest agreementRequest); String checkObjectionStatus(final AgreementRequest agreementRequest); void setDetailsByAssetCategory(final Agreement agreement); Date getEffectiveFinYearToDate(); static final String WF_ACTION_APPROVE; static final String WF_ACTION_REJECT; static final String WF_ACTION_CANCEL; static final String WF_ACTION_FORWARD; static final String WF_ACTION_PRINT_NOTICE; static final String LAMS_WORKFLOW_INITIATOR_DESIGNATION; }