@Override
 public void end(
     HttpServletRequest request,
     Map<String, String> variablesMap,
     JBPMWorkflowHistoryInfo jbpmWorkflowHistoryInfo)
     throws Exception {
   // 1.更新合同结束状态
   String contractid = variablesMap.get("contract_info.id");
   String endDate = variablesMap.get("contract_end_info.actualenddate");
   ContractInfo contract = this.tableService.findEntityByID(ContractInfo.class, contractid);
   contract.setContractStatus(AppStaticUtil.CONTRACT_TERMINATE);
   this.tableService.updateEntity(contract);
   WorkflowUtil.deleteWorkFlowConflict(this.tableService, variablesMap);
   this.contractCommService.saveContractChangeInfo(contract, variablesMap);
   FundRentAdjust adjust = new FundRentAdjust();
   this.tableService.copyAndOverrideExistedValueFromStringMap(
       variablesMap, adjust, null, true, "fund_rent_adjust");
   adjust.setDocId(variablesMap.get("docId"));
   adjust.setContractId(contract);
   DictionaryData adjustType = new DictionaryData();
   adjustType.setId("his_contract_end"); // 租金变更类型
   adjust.setAdjustType(adjustType);
   this.tableService.saveOrUpdateEntity(adjust);
   this.rentConditionData.updateContractConditionDataAndSaveDatatoHis(
       contract,
       variablesMap,
       variablesMap.get("docId"),
       "his_plan_change",
       "framework_condition",
       "json_fund_rent_plan_new_str",
       "json_fund_cash_flow_new_str",
       "",
       "",
       "json_fund_fund_charge_new_str");
 }
 @Override
 public void end(
     HttpServletRequest request,
     Map<String, String> variablesMap,
     JBPMWorkflowHistoryInfo jbpmWorkflowHistoryInfo)
     throws Exception {
   WorkflowUtil.deleteWorkFlowConflict(this.baseService, variablesMap);
   String docid = jbpmWorkflowHistoryInfo.getHistoryProcessInstanceImpl().getDbid() + "";
   variablesMap.put("docid", docid);
   this.contractApprovalService.saveContractApprovalInfo(variablesMap);
 }
Example #3
0
  @Override
  public void end(
      HttpServletRequest request,
      Map<String, String> variablesMap,
      JBPMWorkflowHistoryInfo jbpmWorkflowHistoryInfo)
      throws Exception {

    WorkflowUtil.deleteWorkFlowConflict(this.tableService, variablesMap);
    String doc_id = jbpmWorkflowHistoryInfo.getHistoryProcessInstanceImpl().getDbid() + "";
    variablesMap.put("docId", doc_id);
    this.projCreditService.updateProjCreditInfo(variablesMap);
  }