@@ -0,0 +1,2158 @@
+/**%0A * OpenCPS is the open source Core Public Services software%0A * Copyright (C) 2016-present OpenCPS community%0A%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * any later version.%0A%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A * GNU Affero General Public License for more details.%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E%0A */%0A%0Apackage org.opencps.jms.business;%0A%0Aimport java.util.List;%0A%0Aimport org.opencps.dossiermgt.service.DossierLocalServiceUtil;%0Aimport org.opencps.jms.message.body.SyncFromBackOfficeMsgBody;%0Aimport org.opencps.processmgt.model.WorkflowOutput;%0Aimport org.opencps.processmgt.service.WorkflowOutputLocalServiceUtil;%0Aimport org.opencps.util.PortletConstants;%0A%0A/**%0A * @author trungnt%0A */%0Apublic class SyncFromBackOffice %7B%0A%0A%09public void syncDossier(SyncFromBackOfficeMsgBody syncFromBackOfficeMsgBody) %7B%0A%0A%09%09boolean statusUpdate = false;%0A%0A%09%09//String actor = _getActor(toBackOffice.getRequestCommand());%0A%0A%09%09try %7B%0A%09%09%09/*statusUpdate =%0A%09%09%09%09DossierLocalServiceUtil.updateDossierStatus(%0A%09%09%09%09%09toBackOffice.getDossierId(), toBackOffice.getFileGroupId(),%0A%09%09%09%09%09toBackOffice.getDossierStatus(),%0A%09%09%09%09%09toBackOffice.getReceptionNo(),%0A%09%09%09%09%09toBackOffice.getEstimateDatetime(),%0A%09%09%09%09%09toBackOffice.getReceiveDatetime(),%0A%09%09%09%09%09toBackOffice.getFinishDatetime(), actor,%0A%09%09%09%09%09toBackOffice.getRequestCommand(),%0A%09%09%09%09%09toBackOffice.getActionInfo(), toBackOffice.getMessageInfo());%0A%0A%09%09%09List%3CWorkflowOutput%3E workflowOutputs =%0A%09%09%09%09WorkflowOutputLocalServiceUtil.getByProcessWFPostback(%0A%09%09%09%09%09toBackOffice.getProcessWorkflowId(), true);%0A%0A%09%09%09DossierLocalServiceUtil.updateDossierStatus(%0A%09%09%09%090, toBackOffice.getDossierId(),%0A%09%09%09%09PortletConstants.DOSSIER_FILE_SYNC_STATUS_SYNCSUCCESS,%0A%09%09%09%09workflowOutputs);*/%0A%09%09%7D%0A%09%09catch (Exception e) %7B%0A%0A%09%09%7D%0A%0A%09%7D%0A%7D%0A

Add SyncFromBackend