Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Date;
- import java.util.List;
- import org.apache.commons.logging.Log;
- import org.apache.commons.logging.LogFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import ru.lbpm.metasonic.ruspost.runtime.refinements.MailSender;
- import ru.ruspost.application.ApplicationCardNoRulesView;
- import ru.ruspost.commonattributes.CommonAttributesNoRulesView;
- import ru.ruspost.docmangmntactions.DocMangmntActions;
- import ru.ruspost.inquiry.InquiryEntryNoRulesView;
- import ru.ruspost.qualityclaim.QualityClaimNoRulesView;
- import com.jcom1.api.dto.SubjectInstanceBean;
- import com.jcom1.api.dto.interfaces.storages.IStorageInstanceItemBeanReducedToId;
- import com.jcom1.api.interfaces.IAuthorizationApi;
- import com.jcom1.runtime.refinement.AbstractRefinement;
- import com.jcom1.runtime.refinement.FunctionStateRequest;
- import com.jcom1.runtime.refinement.FunctionStateResponse;
- import com.jcom1.runtime.refinement.RefinementGenerator;
- import com.jcom1.runtime.refinement.SendStateRequest;
- import com.jcom1.runtime.refinement.SendStateResponse;
- import de.metasonic.businessobjects.model.interfaces.IView;
- import de.metasonic.refinement.global.api.bo20.Bo20Accessory;
- import de.metasonic.refinement.global.api.bo20.Bo20FieldValueGetter;
- import de.metasonic.refinement.global.api.bo20.Bo20FieldValueSetter;
- @RefinementGenerator(id = "InternalSubjectDescription_o89IoOgIEeOThxR8QaWOtA")
- public class ufps_analyst1Refinement extends AbstractRefinement {
- /**
- * @generated
- */
- private final static Log log = LogFactory
- .getLog("com.jcom1.refinement.анализ_и_подготовка_ответа_на_обращение___уфпс.ufps_analyst1");
- // public static Log CustomLog =
- // LogFactory.getLog(ufps_analyst1Refinement.class);
- /**
- * This function provides the data to send in the named state. TransitionID
- * SendTransitionDescription_ChnXIetVEeOr99WSB0SeVA State: Отправить
- * руководителю MessageType: Ответ на обращение TransitionType SEND
- * Destination Subject Руководитель
- *
- * @return // return the id of the transition to follow or null to stay in
- * this state e.g. // return new
- * SendStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "SendStateDescription_ChKrMOtVEeOr99WSB0SeVA")
- public SendStateResponse sendStateОтправить_руководителю(
- SendStateRequest sendStateRequest) {
- de.metasonic.reftmpl.bo20automaticsend.runtime.Bo20AutomaticSendRuntime refinementRuntime = new de.metasonic.reftmpl.bo20automaticsend.runtime.Bo20AutomaticSendRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_SendStateDescription_ChKrMOtVEeOr99WSB0SeVA);
- try {
- return (SendStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * Status UPDT: Закрыто StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_uvHyEUPxEeSk8dw1p8cjjQ" when
- * result is "" to go to state Завершить связанные процессы
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_eHNkqEPxEeSk8dw1p8cjjQ")
- public FunctionStateResponse functionStatus_UPDT__Закрыто(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_eHNkqEPxEeSk8dw1p8cjjQ);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This function provides the data to send in the named state. TransitionID
- * SendTransitionDescription_M9_oUe13EeO7cYoeJG3F3g State: Согласовать
- * делегирование с руководителем MessageType: Согласовать делегирование
- * TransitionType SEND Destination Subject Руководитель
- *
- * @return // return the id of the transition to follow or null to stay in
- * this state e.g. // return new
- * SendStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "SendStateDescription_EzivYe13EeO7cYoeJG3F3g")
- public SendStateResponse sendStateСогласовать_делегирование_с_руководителем(
- SendStateRequest sendStateRequest) {
- de.metasonic.reftmpl.bo20automaticsend.runtime.Bo20AutomaticSendRuntime refinementRuntime = new de.metasonic.reftmpl.bo20automaticsend.runtime.Bo20AutomaticSendRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_SendStateDescription_EzivYe13EeO7cYoeJG3F3g);
- try {
- return (SendStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * Status UPD: Ожидание ответов на запросы StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_CBraAUMREeSJ06URn4wMYA" when
- * result is "" to go to state Анализ обращения
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_38ItYUMQEeSJ06URn4wMYA")
- public FunctionStateResponse functionStatus_UPD__Ожидание_ответов_на_запросы(
- FunctionStateRequest functionStateRequest) {
- // Indicates if any value was changed by the refinement to suppress
- // unnecessary save operations.
- boolean valueChanged = false;
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- if (firstStorageItemInFirstStorage != null) {
- log.debug("Found storage item.");
- IView view = boAccessory
- .loadView(firstStorageItemInFirstStorage);
- if (view instanceof ApplicationCardNoRulesView) {
- ApplicationCardNoRulesView applicationCard = (ApplicationCardNoRulesView) view;
- log.debug("Updating quality claims...");
- List<QualityClaimNoRulesView> qualityClaims = applicationCard
- .getQualityClaim();
- if (qualityClaims != null) {
- if (log.isDebugEnabled()) {
- log.debug("Found " + qualityClaims.size()
- + " quality claims.");
- }
- for (QualityClaimNoRulesView qualityClaim : qualityClaims) {
- if (Boolean.TRUE
- .equals(qualityClaim.getCreateKpl())
- && qualityClaim.getIsInquiryRequired() != QualityClaimNoRulesView.IsInquiryRequired_enum.isSent) {
- qualityClaim
- .setIsInquiryRequired(QualityClaimNoRulesView.IsInquiryRequired_enum.isSent);
- valueChanged = true;
- }
- }
- }
- log.debug("Updating linked inquiries...");
- List<InquiryEntryNoRulesView> linkedInquiries = applicationCard
- .getLinkedInquiries();
- if (linkedInquiries != null) {
- if (log.isDebugEnabled()) {
- log.debug("Found " + linkedInquiries.size()
- + " linked inquiries.");
- }
- for (InquiryEntryNoRulesView linkedInquiry : linkedInquiries) {
- if (linkedInquiry.getInquiryStatus() != InquiryEntryNoRulesView.InquiryStatus_enum.inquirySent) {
- linkedInquiry
- .setInquiryStatus(InquiryEntryNoRulesView.InquiryStatus_enum.inquirySent);
- valueChanged = true;
- }
- }
- }
- // Finally, update claimStatus (was previously done by
- // RefinementTemplate).
- log.debug("Updating claim status...");
- CommonAttributesNoRulesView commonAttributes = applicationCard
- .getCommonAttributes();
- if (commonAttributes != null) {
- if (commonAttributes.getClaimStatus() != CommonAttributesNoRulesView.ClaimStatus_enum.inquiryAnswerWait) {
- commonAttributes
- .setClaimStatus(CommonAttributesNoRulesView.ClaimStatus_enum.inquiryAnswerWait);
- valueChanged = true;
- }
- }
- } else {
- log.warn("View in state is not of type "
- + ApplicationCardNoRulesView.class
- + " as expected, but instead of type "
- + view.getClass());
- }
- } else {
- log.warn("No storage items found for subject instance "
- + getSubjectInstance());
- }
- if (valueChanged) {
- log.debug("Values have been changed: saving view...");
- boAccessory.saveView();
- } else {
- log.debug("No values have been changed.");
- }
- } catch (Exception e) {
- log.error(e);
- }
- log.debug("Inquiry status update done.");
- return new FunctionStateResponse(
- "FunctionTransitionDescription_CBraAUMREeSJ06URn4wMYA");
- }
- /**
- * This method is called when the named function state is reached State:
- * Status UPDT: Подготовлен промежуточный ответ StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_OAy9wUMZEeSJ06URn4wMYA" when
- * result is "" to go to state claimDeadline UPDT
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_xXFLUUMYEeSJ06URn4wMYA")
- public FunctionStateResponse functionStatus_UPDT__Подготовлен_промежуточный_ответ(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_xXFLUUMYEeSJ06URn4wMYA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * E-mail уведомить об истечении срока StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_0V6uc0C8EeSFnqgOX9hOgg" when
- * result is "" to go to state Анализ обращения
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_yi9jEkC8EeSFnqgOX9hOgg")
- public FunctionStateResponse functionE_mail__уведомить_об_истечении_срока(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.notification.runtime.NotificationRuntime refinementRuntime = new de.metasonic.reftmpl.notification.runtime.NotificationRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_yi9jEkC8EeSFnqgOX9hOgg);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Установить статус "Делегировано" StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_rTDY4V3eEeStvu3rxtx2aA" when
- * result is "" to go to state Отправка обращения в почтамт
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_gqZYIV3eEeStvu3rxtx2aA")
- public FunctionStateResponse updateIsDelegatedStatus(
- FunctionStateRequest functionStateRequest) {
- log.debug("Updating inquiry status...");
- // Indicates if any value was changed by the refinement to suppress
- // unnecessary save operations.
- boolean valueChanged = false;
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- if (firstStorageItemInFirstStorage != null) {
- log.debug("Found storage item.");
- IView view = boAccessory
- .loadView(firstStorageItemInFirstStorage);
- if (view instanceof ApplicationCardNoRulesView) {
- ApplicationCardNoRulesView applicationCard = (ApplicationCardNoRulesView) view;
- log.debug("Updating ReceiverGroup...");
- String receiverGroup = applicationCard.getDelegateTask()
- .getDelegationSelector().getManagerGroupName();
- if (receiverGroup == null) {
- log.debug("Postamt manager receiverGroup is null...");
- }
- log.debug("Postamt manger receiverGroup is "
- + receiverGroup);
- applicationCard.setReceiverGroup(receiverGroup);
- log.debug("Postamt manger receiverGroup is set and equals "
- + receiverGroup);
- log.debug("Updating claimStatus to Delegation...");
- CommonAttributesNoRulesView commonAttributes = applicationCard
- .getCommonAttributes();
- // if (commonAttributes != null) {
- // if (commonAttributes.getClaimStatus() !=
- // CommonAttributesNoRulesView.ClaimStatus_enum.isDelegated)
- // {
- commonAttributes
- .setClaimStatus(CommonAttributesNoRulesView.ClaimStatus_enum.isDelegated);
- applicationCard.setDelegatedToPostamt(true);
- log.debug("DelegatedToPostamt set to true");
- valueChanged = true;
- // }
- //
- // }
- } else {
- log.warn("View in state is not of type "
- + ApplicationCardNoRulesView.class
- + " as expected, but instead of type "
- + view.getClass());
- }
- } else {
- log.warn("No storage items found for subject instance "
- + getSubjectInstance());
- }
- if (valueChanged) {
- log.debug("Values have been changed: saving view...");
- boAccessory.saveView();
- } else {
- log.debug("No values have been changed.");
- }
- } catch (Exception e) {
- log.error(e);
- }
- log.debug("Inquiry status update done.");
- return new FunctionStateResponse(
- "FunctionTransitionDescription_EtMJAxBeEeerWdDLx9TJVw");
- }
- /**
- * This method is called when the named function state is reached State:
- * E-mail: поступило новое обращение StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_VxNcYQ54EeSi5vULMM5ANg" when
- * result is "" to go to state Status UPTD: Анализ обращения
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_T3xvsg54EeSi5vULMM5ANg")
- public FunctionStateResponse functionE_mail__поступило_новое_обращение(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.notification.runtime.NotificationRuntime refinementRuntime = new de.metasonic.reftmpl.notification.runtime.NotificationRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_T3xvsg54EeSi5vULMM5ANg);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This function provides the data to send in the named state. TransitionID
- * SendTransitionDescription_FNKoQA5QEeSi5vULMM5ANg State: Отправить
- * руководителю промежуточный ответ MessageType: Промежуточный ответ на
- * обращение TransitionType SEND Destination Subject Руководитель
- *
- * @return // return the id of the transition to follow or null to stay in
- * this state e.g. // return new
- * SendStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "SendStateDescription_FM3tUA5QEeSi5vULMM5ANg")
- public SendStateResponse sendStateОтправить_руководителю_промежуточный_ответ(
- SendStateRequest sendStateRequest) {
- de.metasonic.reftmpl.bo20automaticsend.runtime.Bo20AutomaticSendRuntime refinementRuntime = new de.metasonic.reftmpl.bo20automaticsend.runtime.Bo20AutomaticSendRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_SendStateDescription_FM3tUA5QEeSi5vULMM5ANg);
- try {
- return (SendStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Отметить обращение как новое StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_e1fD0Tx0EeSHjfkai80aOg" when
- * result is "" to go to state E-mail: поступило новое обращение
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_Y2U9wTx0EeSHjfkai80aOg")
- public FunctionStateResponse functionSYS__Отметить_обращение_как_новое(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_Y2U9wTx0EeSHjfkai80aOg);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * Status UPDT: Ответ отправлен StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_8iB8oUMfEeSJ06URn4wMYA" when
- * result is "" to go to state Отправить в СЭД инф. о способах отправки
- * "FunctionTransitionDescription_50kdkUarEeeqiseknBlTfA" when result is ""
- * to go to state Определить: Требуется ли копия ответа в АУП
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_sLbhoUMfEeSJ06URn4wMYA")
- public FunctionStateResponse functionStatus_UPDT__Ответ_отправлен(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_sLbhoUMfEeSJ06URn4wMYA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * Status UPTD: Анализ обращения StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_MN_OQUMXEeSJ06URn4wMYA" when
- * result is "" to go to state Анализ обращения
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_xonkwUMWEeSJ06URn4wMYA")
- public FunctionStateResponse functionStatus_UPTD__Анализ_обращения(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_xonkwUMWEeSJ06URn4wMYA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * E-mail: Поступила копия ответа по обращению StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_wnETEXogEeSAgPNivYu06Q" when
- * result is "" to go to state Определить: Требуется ли копия ответа в АУП
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_sYmHgXogEeSAgPNivYu06Q")
- public FunctionStateResponse functionE_mail__Поступила_копия_ответа_по_обращению(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.notification.runtime.NotificationRuntime refinementRuntime = new de.metasonic.reftmpl.notification.runtime.NotificationRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_sYmHgXogEeSAgPNivYu06Q);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Загрузить ответ на запрос StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_Vy7LAXr4EeSxQJ5cUdsqSA" when
- * result is "" to go to state Удалить поступивший ответ на запрос
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_T4oBgXr4EeSxQJ5cUdsqSA")
- public FunctionStateResponse functionSYS__Загрузить_ответ_на_запрос(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.copybo20.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.copybo20.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_T4oBgXr4EeSxQJ5cUdsqSA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * Удалить поступивший ответ на запрос StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_Yq9vIXr4EeSxQJ5cUdsqSA" when
- * result is "" to go to state Анализ обращения
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_Vy7yEXr4EeSxQJ5cUdsqSA")
- public FunctionStateResponse functionУдалить_поступивший_ответ_на_запрос(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.clearfolder.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.clearfolder.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_Vy7yEXr4EeSxQJ5cUdsqSA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * Создать копию ответа на запрос StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_e9s8cXuQEeSwNrpY_bxgsA" when
- * result is "" to go to state SYS: Перенести копию ответа в отдельную папку
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_OljpUXuQEeSwNrpY_bxgsA")
- public FunctionStateResponse functionСоздать_копию_ответа_на_запрос(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.copybo20.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.copybo20.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_OljpUXuQEeSwNrpY_bxgsA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Перенести копию ответа в отдельную папку StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_hXL8UXuQEeSwNrpY_bxgsA" when
- * result is "" to go to state SYS: Загрузить ответ на запрос
- * "FunctionTransitionDescription_i1qFcXuQEeSwNrpY_bxgsA" when result is ""
- * to go to state SYS: Перенести копию ответа в отдельную папку
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_RilbIXuQEeSwNrpY_bxgsA")
- public FunctionStateResponse functionSYS__Перенести_копию_ответа_в_отдельную_папку(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.storageitemdistributor.runtime.StorageItemDistributorRuntime refinementRuntime = new de.metasonic.reftmpl.storageitemdistributor.runtime.StorageItemDistributorRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_RilbIXuQEeSwNrpY_bxgsA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This function provides the data to send in the named state. TransitionID
- * SendTransitionDescription_Z6u28YEkEeSYGqzav8IP3Q State: Отправить
- * руководителю уведомление о закрытии обращения MessageType: Ответ
- * согласован TransitionType SEND Destination Subject Руководитель
- *
- * @return // return the id of the transition to follow or null to stay in
- * this state e.g. // return new
- * SendStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "SendStateDescription_Rq4goYEkEeSYGqzav8IP3Q")
- public SendStateResponse sendStateОтправить_руководителю_уведомление_о_закрытии_обращения(
- SendStateRequest sendStateRequest) {
- de.metasonic.reftmpl.bo20automaticsend.runtime.Bo20AutomaticSendRuntime refinementRuntime = new de.metasonic.reftmpl.bo20automaticsend.runtime.Bo20AutomaticSendRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_SendStateDescription_Rq4goYEkEeSYGqzav8IP3Q);
- try {
- return (SendStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * Удалить обращение StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_SkUQc4xQEeS_DedIEhcxYA" when
- * result is "" to go to state Ожидание ответа от руководителя
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_PwrrMYxQEeS_DedIEhcxYA")
- public FunctionStateResponse clearApplicationCard(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.clearfolder.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.clearfolder.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_PwrrMYxQEeS_DedIEhcxYA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * Status UPDT: Подготовка отета StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_iAJcI4zbEeSCuKxBmW_9PQ" when
- * result is "" to go to state Подготовка ответа на обращение
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_cMfbcYzbEeSCuKxBmW_9PQ")
- public FunctionStateResponse functionStatus_UPDT__Подготовка_отета(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_cMfbcYzbEeSCuKxBmW_9PQ);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Установить статус Направлено по назначению StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_7aznU7EnEeSQS7YUpI5jiQ" when
- * result is "" to go to state SYS: Зафиксировать userId и departmentType
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_7Z8r37EnEeSQS7YUpI5jiQ")
- public FunctionStateResponse functionSYS__Установить_статус_Направлено_по_назначению(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_YJ9sw7BfEeSDaozb8mD6Ew);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Обновить статус Направлено партнёрам StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_J7eGQbHqEeSOqpbZlfYPkQ" when
- * result is "" to go to state Обращение отправлено партнёрам
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_J7LyfLHqEeSOqpbZlfYPkQ")
- public FunctionStateResponse functionSYS__Обновить_статус_Направлено_партнёрам(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_HPK107AuEeSTc7w663UUKQ);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * claimDeadline UPDT StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_7EXCsbHWEeSxsLNX4sAoTQ" when
- * result is "" to go to state Зарегистрировать промежуточный ответ
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- /**
- * @RefinementGenerator(id =
- * "FunctionStateDescription_elB9uLIKEeS1_6hWgdiJSw"
- * ) public FunctionStateResponse
- * functionclaimDeadline_UPDT( FunctionStateRequest
- * functionStateRequest) {
- *
- * log.debug("Starting deadline update");
- *
- * Bo20Accessory boAccessory = new
- * Bo20Accessory(getSubjectInstance()); try {
- * IStorageInstanceItemBeanReducedToId
- * firstStorageItemInFirstStorage = boAccessory
- * .getFirstStorageItemInFirstStorage();
- *
- * IView view = boAccessory.loadView(
- * firstStorageItemInFirstStorage);
- * log.debug("Got view for updating");
- *
- * Date newDeadline = (Date)
- * Bo20FieldValueGetter.getValue(view,
- * "intermediaryOutcomingAttributes.newClaimDeadline"
- * );
- *
- * log.debug("updating....");
- *
- * Bo20FieldValueSetter.setValue(view,
- * "commonAttributes.claimDeadline", newDeadline);
- *
- * boAccessory.saveView();
- *
- * } catch (Exception e) { e.printStackTrace(); }
- *
- * log.debug("claimDeadline updated");
- *
- * return new FunctionStateResponse(
- * "FunctionTransitionDescription_jqNu0bIKEeS1_6hWgdiJSw"
- * ); }
- */
- /**
- * This state is an exit state Do all necessary clean up here. State: SYS:
- * Установить дату закрытия обращения StateType: EXIT
- */
- @RefinementGenerator(id = "FunctionStateDescription_elB9uLIKEeS1_6hWgdiJSw")
- public FunctionStateResponse functionSYS__Установить_дату_закрытия_обращения(
- FunctionStateRequest functionStateRequest) {
- log.debug("Setting currentTime for ApplicationCard");
- Long functionExecutionStart = System.currentTimeMillis();
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- long timeStart = System.currentTimeMillis();
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- log.debug("firstStorageItemInFirstStorage fetched in "
- + (System.currentTimeMillis() - timeStart) + " ms");
- log.debug("firstStorageItemInFirstStorage fetched in "
- + (System.currentTimeMillis() - timeStart) + " ms");
- timeStart = System.currentTimeMillis();
- IView view = boAccessory.loadView(firstStorageItemInFirstStorage);
- log.debug("view fetched in "
- + (System.currentTimeMillis() - timeStart) + " ms");
- log.debug("view fetched in "
- + (System.currentTimeMillis() - timeStart) + " ms");
- log.debug("Got view for time setting");
- Date date = new Date();
- Date currentTime = new Date(date.getTime());
- timeStart = System.currentTimeMillis();
- log.debug("Time is " + currentTime);
- log.debug("Time is " + currentTime);
- Bo20FieldValueSetter
- .setValue(view,
- "outcomingAttributes.factApplicationCloseDate",
- currentTime);
- log.debug("currentTime set in "
- + (System.currentTimeMillis() - timeStart) + " ms");
- log.debug("currentTime set in "
- + (System.currentTimeMillis() - timeStart) + " ms");
- timeStart = System.currentTimeMillis();
- boAccessory.saveView();
- log.debug("business object saved in "
- + (System.currentTimeMillis() - timeStart) + " ms");
- log.debug("business object saved in "
- + (System.currentTimeMillis() - timeStart) + " ms");
- } catch (Exception e) {
- // TODO Автоматически созданный блок catch
- log.error(e);
- }
- log.debug("function executed in "
- + (System.currentTimeMillis() - functionExecutionStart) + " ms");
- System.out
- .println("function executed in "
- + (System.currentTimeMillis() - functionExecutionStart)
- + " ms");
- return new FunctionStateResponse(
- "FunctionTransitionDescription_jqNu0bIKEeS1_6hWgdiJSw");
- }
- /**
- * This method is called when the named function state is reached State:
- * claimDeadline UPDT StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_7EXCsbHWEeSxsLNX4sAoTQ" when
- * result is "" to go to state Зарегистрировать промежуточный ответ
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_Zt2J8LHWEeSxsLNX4sAoTQ")
- public FunctionStateResponse functionclaimDeadline_UPDT(
- FunctionStateRequest functionStateRequest) {
- log.debug("Starting deadline update");
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- IView view = boAccessory.loadView(firstStorageItemInFirstStorage);
- log.debug("Got view for updating");
- Date newDeadline = (Date) Bo20FieldValueGetter.getValue(view,
- "intermediaryOutcomingAttributes.newClaimDeadline");
- log.debug("updating....");
- Bo20FieldValueSetter.setValue(view,
- "commonAttributes.claimDeadline", newDeadline);
- boAccessory.saveView();
- } catch (Exception e) {
- log.error(e);
- }
- log.debug("claimDeadline updated");
- return new FunctionStateResponse(
- "FunctionTransitionDescription_7EXCsbHWEeSxsLNX4sAoTQ");
- }
- /**
- * This method is called when the named function state is reached State:
- * email: Направить ответ клиенту StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_ovZZAXJyEeWTKfTTbJ_JGw" when
- * result is "" to go to state Status UPDT: Ответ отправлен
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_jV4WonJyEeWTKfTTbJ_JGw")
- public FunctionStateResponse emailFinalUfpsFTSAnswer(
- FunctionStateRequest functionStateRequest) {
- System.out.println("emailFinalUfpsFTSAnswer: start");
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- if (firstStorageItemInFirstStorage != null) {
- IView view = boAccessory
- .loadView(firstStorageItemInFirstStorage);
- if (view instanceof ApplicationCardNoRulesView) {
- ApplicationCardNoRulesView applicationCard = (ApplicationCardNoRulesView) view;
- String claimId = applicationCard
- .getClaimIncomingAttributes().getClaimIsoId();
- System.out.println("emailFinalUfpsFTSAnswer: claimId = "
- + claimId);
- String claimExternalId = applicationCard
- .getClaimIncomingAttributes()
- .getExternalIncomingId();
- System.out
- .println("emailFinalUfpsFTSAnswer: claimExternalId = "
- + claimExternalId);
- String userId = applicationCard.getTechdata()
- .getCurrentUserId();
- System.out.println("emailFinalUfpsFTSAnswer: userId = "
- + userId);
- String procInstId = applicationCard.getProcInstId();
- System.out.println("emailFinalUfpsFTSAnswer: procInstId = "
- + procInstId);
- String subjInstId = applicationCard.getSubjInstId();
- System.out.println("emailFinalUfpsFTSAnswer: subjInstId = "
- + subjInstId);
- String customerEmail = applicationCard.getCustomerInfo()
- .getCustomerEmail();
- System.out
- .println("emailFinalUfpsFTSAnswer: customerEmail = "
- + customerEmail);
- System.out
- .println("emailFinalUfpsFTSAnswer: attempt to execute MailSender");
- MailSender
- .execute(
- userId,
- procInstId,
- subjInstId,
- customerEmail,
- "ROOT/Ответ на обращение",
- "russianpost" + claimId + ".zip",
- "Ваше обращение №" + claimId
- + " обработано",
- "По Вашему обращению №"
- + claimId
- + " на запрос 'Переадресация из ФТС России №"
- + claimExternalId
- + "' получен ответ. Ответ во вложении.");
- System.out
- .println("emailFinalUfpsFTSAnswer: MailSender execution completed, please check for the email delivery");
- }
- }
- else {
- log.warn("No storage items found for subject instance "
- + getSubjectInstance());
- }
- } catch (Exception e) {
- log.error(e);
- }
- System.out
- .println("emailFinalUfpsFTSAnswer: finished with emailFinalUfpsFTSAnswer, return FunctionStateResponse");
- return new FunctionStateResponse(
- "FunctionTransitionDescription_ovZZAXJyEeWTKfTTbJ_JGw");
- }
- /**
- * This method is called when the named function state is reached State:
- * email: Отправить клиенту ответ на обращение StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_ChvS8utVEeOr99WSB0SeVA" when
- * result is "" to go to state Status UPDT: Ответ отправлен
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_ChcYAOtVEeOr99WSB0SeVA")
- public FunctionStateResponse emailFinalUfpsAnswer(
- FunctionStateRequest functionStateRequest) {
- System.out.println("emailFinalUfpsAnswer: start");
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- if (firstStorageItemInFirstStorage != null) {
- IView view = boAccessory
- .loadView(firstStorageItemInFirstStorage);
- if (view instanceof ApplicationCardNoRulesView) {
- ApplicationCardNoRulesView applicationCard = (ApplicationCardNoRulesView) view;
- String claimId = applicationCard
- .getClaimIncomingAttributes().getClaimIsoId();
- System.out.println("emailFinalUfpsAnswer: claimId = "
- + claimId);
- String claimExternalId = applicationCard
- .getClaimIncomingAttributes()
- .getExternalIncomingId();
- System.out
- .println("emailFinalUfpsAnswer: claimExternalId = "
- + claimExternalId);
- String userId = applicationCard.getTechdata()
- .getCurrentUserId();
- System.out.println("emailFinalUfpsAnswer: userId = "
- + userId);
- String procInstId = applicationCard.getProcInstId();
- System.out.println("emailFinalUfpsAnswer: procInstId = "
- + procInstId);
- String subjInstId = applicationCard.getSubjInstId();
- System.out.println("emailFinalUfpsAnswer: subjInstId = "
- + subjInstId);
- String customerEmail = applicationCard.getCustomerInfo()
- .getCustomerEmail();
- System.out.println("emailFinalUfpsAnswer: customerEmail = "
- + customerEmail);
- System.out
- .println("emailFinalUfpsAnswer: attempt to execute MailSender");
- MailSender
- .execute(
- userId,
- procInstId,
- subjInstId,
- customerEmail,
- "ROOT/Ответ на обращение",
- "russianpost" + claimId + ".zip",
- "Ответ на обращение №" + claimId,
- "Уважаемый клиент,\n"
- + "Во вложении к данному письму направляем ответ на Ваше обращение № "
- + claimId
- + "\n\nФГУП \"Почта России\".");
- System.out
- .println("emailFinalUfpsAnswer: MailSender execution completed, please check for the email delivery");
- }
- }
- else {
- log.warn("No storage items found for subject instance "
- + getSubjectInstance());
- }
- } catch (Exception e) {
- log.error(e);
- }
- System.out
- .println("emailFinalUfpsAnswer: finished with emailFinalUfpsAnswer, return FunctionStateResponse");
- return new FunctionStateResponse(
- "FunctionTransitionDescription_ChvS8utVEeOr99WSB0SeVA");
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Зафиксировать userId и departmentType StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_ShTZIBBeEeerWdDLx9TJVw" when
- * result is "" to go to state SYS: Убрать флаг Отправлено из КЦ
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_ShEIlhBeEeerWdDLx9TJVw")
- public FunctionStateResponse functionSYS__Зафиксировать_userId_и_departmentType(
- FunctionStateRequest functionStateRequest) {
- System.out.println("Зафиксировать_userId_и_departmentType: start");
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- if (firstStorageItemInFirstStorage != null) {
- IView view = boAccessory
- .loadView(firstStorageItemInFirstStorage);
- if (view instanceof ApplicationCardNoRulesView) {
- ApplicationCardNoRulesView applicationCard = (ApplicationCardNoRulesView) view;
- int previousUserId = Integer.parseInt(applicationCard
- .getCurrentUser().getId());
- // String previousDepartmentType = applicationCard
- // .getCurrentUserDepartment().getDepartmentType();
- String previousDepartmentType = applicationCard
- .getCommonAttributes()
- .getClaimResponsibleDepartment()
- .getDepartmentType();
- Bo20FieldValueSetter.setValue(view, "previousUserId",
- previousUserId);
- Bo20FieldValueSetter.setValue(view,
- "previousDepartmentType", previousDepartmentType);
- Bo20FieldValueSetter.setValue(view,
- "commonAttributes.refuseComm", "");
- System.out.println("previousUserId: " + previousUserId
- + ", previousDepartmentType: "
- + previousDepartmentType);
- boAccessory.saveView();
- } else {
- log.warn("No storage items found for subject instance "
- + getSubjectInstance());
- }
- }
- } catch (Exception e) {
- log.error(e);
- }
- return new FunctionStateResponse(
- "FunctionTransitionDescription_ShTZIBBeEeerWdDLx9TJVw");
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Убрать флаг Отправлено из КЦ StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_W42oMRBeEeerWdDLx9TJVw" when
- * result is "" to go to state Направить задание в другое подразделение
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_ShNSgBBeEeerWdDLx9TJVw")
- public FunctionStateResponse functionSYS__Убрать_флаг_Отправлено_из_КЦ(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_ShNSgBBeEeerWdDLx9TJVw);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Зафиксировать userId и departmentType1 StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_Gyir8xBeEeerWdDLx9TJVw" when
- * result is "" to go to state Отправка обращения в почтамт
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_x0P_shBdEeerWdDLx9TJVw")
- public FunctionStateResponse functionSYS__Зафиксировать_userId_и_departmentType1(
- FunctionStateRequest functionStateRequest) {
- System.out.println("Зафиксировать_userId_и_departmentType: start");
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- if (firstStorageItemInFirstStorage != null) {
- IView view = boAccessory
- .loadView(firstStorageItemInFirstStorage);
- if (view instanceof ApplicationCardNoRulesView) {
- ApplicationCardNoRulesView applicationCard = (ApplicationCardNoRulesView) view;
- int previousUserId = Integer.parseInt(applicationCard
- .getCurrentUser().getId());
- // String previousDepartmentType = applicationCard
- // .getCurrentUserDepartment().getDepartmentType();
- String previousDepartmentType = applicationCard
- .getCommonAttributes()
- .getClaimResponsibleDepartment()
- .getDepartmentType();
- Bo20FieldValueSetter.setValue(view, "previousUserId",
- previousUserId);
- Bo20FieldValueSetter.setValue(view,
- "previousDepartmentType", previousDepartmentType);
- Bo20FieldValueSetter.setValue(view,
- "commonAttributes.refuseComm", "");
- System.out.println("previousUserId: " + previousUserId
- + ", previousDepartmentType: "
- + previousDepartmentType);
- boAccessory.saveView();
- } else {
- log.warn("No storage items found for subject instance "
- + getSubjectInstance());
- }
- }
- } catch (Exception e) {
- log.error(e);
- }
- return new FunctionStateResponse(
- "FunctionTransitionDescription_Gyir8xBeEeerWdDLx9TJVw");
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Установить статус "Обращение возвращено" StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_h7xYgBBdEeerWdDLx9TJVw" when
- * result is "" to go to state SYS: Отметить обращение как Новое
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_h7rR4hBdEeerWdDLx9TJVw")
- public FunctionStateResponse functionSYS__Установить_статус__Обращение_возвращено_(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_h7rR4hBdEeerWdDLx9TJVw);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Убрать флаг Отказ от обращения StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_i7S1YROKEee6MraXpSxWRA" when
- * result is "" to go to state E-mail: обращение было возвращено
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_UM_N4ROKEee6MraXpSxWRA")
- public FunctionStateResponse functionSYS__Убрать_флаг_Отказ_от_обращения(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_UM_N4ROKEee6MraXpSxWRA);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * This method is called when the named function state is reached State:
- * SYS: Отметить обращение как Новое StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_txAJcRR9EeeDLNRfpiDxiw" when
- * result is "" to go to state SYS: Убрать флаг Отказ от обращения
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_m3BfsRR9EeeDLNRfpiDxiw")
- public FunctionStateResponse functionSYS__Отметить_обращение_как_Новое(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_m3BfsRR9EeeDLNRfpiDxiw);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_xXFLUUMYEeSJ06URn4wMYA = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48Ym8yMF9maWVsZC5maWVsZC4xIHZhbHVlPSJjb21tb25BdHRyaWJ1dGVzLmNsYWltU3RhdHVzIi8+PGJvMjBfZmllbGQuc3RvcmFnZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxTVEFURV9JRCB2YWx1ZT0iRnVuY3Rpb25TdGF0ZURlc2NyaXB0aW9uX3hYRkxVVU1ZRWVTSjA2VVJuNHdNWUEiLz48c3RvcmFnZS52YWx1ZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxibzIwX2ZpZWxkLmJvIHZhbHVlPSJydS5ydXNwb3N0LmFwcGxpY2F0aW9uLkFwcGxpY2F0aW9uQ2FyZE5vUnVsZXNWaWV3Ii8+PGJvMjBfZmllbGQudmFsdWUuMiB2YWx1ZT0idHJ1ZSIvPjxibzIwX2ZpZWxkLnZhbHVlLjEgdmFsdWU9ImludGVybWVkaWF0ZUFuc3dlcmVkQ2xhaW0iLz48Ym8yMF9maWVsZC50eXBlLjIgdmFsdWU9IkJPT0xFQU4iLz48Ym8yMF9maWVsZC5tb2RlIHZhbHVlPSJjaGVjayIvPjxibzIwX2ZpZWxkLnR5cGUuMSB2YWx1ZT0iRU5VTSIvPjxibzIwX2ZpZWxkLmZpZWxkLjIgdmFsdWU9ImludGVybWVkaWFyeUFuc3dlclNlbnQiLz48L2NvbmZpZ3VyYXRpb24+";
- /**
- * This method is called when the named function state is reached State:
- * Зарегистрировать ответ в СЭД StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_Je2RQEOPEeeZ8tdD70STrg" when
- * result is "" to go to state Передать ответ на согласование в СЭД
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_E_5ZsUOPEeeZ8tdD70STrg")
- public FunctionStateResponse functionЗарегистрировать_ответ_в_СЭД(
- FunctionStateRequest functionStateRequest) {
- SubjectInstanceBean subjInstBean = getSubjectInstance();
- String userId = subjInstBean.getEditor();
- // IUserBean userBean = authorizationApi.getUser(userId);
- DocMangmntActions.requestAgreemant(subjInstBean, userId, false);
- return new FunctionStateResponse(
- "FunctionTransitionDescription_Je2RQEOPEeeZ8tdD70STrg");
- }
- /**
- * This method is called when the named function state is reached State:
- * Получение рег. номера StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_bVxT4UOtEee9zf2TMLhdUg" when
- * result is "" to go to state Ожидание получения рег. номера
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_zXwisUOsEeeZ8tdD70STrg")
- public FunctionStateResponse functionПолучение_рег__номера(
- FunctionStateRequest functionStateRequest) throws Exception {
- SubjectInstanceBean subjInstBean = getSubjectInstance();
- String userId = subjInstBean.getEditor();
- // IUserBean userBean = authorizationApi.getUser(userId);
- DocMangmntActions.requetsOutgoing(subjInstBean, userId, false);
- return new FunctionStateResponse(
- "FunctionTransitionDescription_bVxT4UOtEee9zf2TMLhdUg");
- }
- @Autowired
- IAuthorizationApi authorizationApi;
- /**
- * This method is called when the named function state is reached State:
- * Отправка скана StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_ldmfgUOtEee9zf2TMLhdUg" when
- * result is "" to go to state Определение типа отправки обращения
- * "FunctionTransitionDescription_gCiywUOyEee9zf2TMLhdUg" when result is ""
- * to go to state Определение типа отправки промежуточного ответа
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @throws Exception
- */
- @RefinementGenerator(id = "FunctionStateDescription_DRk7EUOtEeeZ8tdD70STrg")
- public FunctionStateResponse functionОтправка_скана(
- FunctionStateRequest functionStateRequest) throws Exception {
- SubjectInstanceBean subjInstBean = getSubjectInstance();
- String userId = subjInstBean.getEditor();
- // IUserBean userBean = authorizationApi.getUser(userId);
- DocMangmntActions.sendScan(subjInstBean, userId, true);
- return new FunctionStateResponse(
- "FunctionTransitionDescription_Xu5fIURCEeerd73vvRhm7g");
- }
- /**
- * This method is called when the named function state is reached State:
- * Отправить в СЭД инф. о способах отправки обращения StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_sKStwUUdEeekEqjj5d37yA" when
- * result is "" to go to state Определить: Требуется ли копия ответа в АУП
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_l8P3JkUdEeekEqjj5d37yA")
- public FunctionStateResponse functionОтправить_в_СЭД_инф__о_способах_отправки(
- FunctionStateRequest functionStateRequest) throws Exception {
- SubjectInstanceBean subjInstBean = getSubjectInstance();
- String userId = subjInstBean.getEditor();
- // IUserBean userBean = authorizationApi.getUser(userId);
- DocMangmntActions.sendMailId(subjInstBean, userId, false);
- return new FunctionStateResponse(
- "FunctionTransitionDescription_sKStwUUdEeekEqjj5d37yA");
- }
- /**
- * This method is called when the named function state is reached State:
- * Отправить в СЭД инф. о способах отправки обращения StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_LGzpQUUeEeekEqjj5d37yA" when
- * result is "" to go to state Анализ обращения
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_9GHVuEUdEeekEqjj5d37yA")
- public FunctionStateResponse functionОтправить_в_СЭД_инф__о_способах_отправки_обращения(
- FunctionStateRequest functionStateRequest) throws Exception {
- SubjectInstanceBean subjInstBean = getSubjectInstance();
- String userId = subjInstBean.getEditor();
- // IUserBean userBean = authorizationApi.getUser(userId);
- DocMangmntActions.sendMailId(subjInstBean, userId, false);
- return new FunctionStateResponse(
- "FunctionTransitionDescription_LGzpQUUeEeekEqjj5d37yA");
- }
- /**
- * This method is called when the named function state is reached State:
- * Зар. пр. ответ в СЭД StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_Kc1EAUOxEee9zf2TMLhdUg" when
- * result is "" to go to state Ожидание согласования промежуточного ответа в
- * СЭД
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_AtyL0UOxEee9zf2TMLhdUg")
- public FunctionStateResponse functionЗар__пр__ответ_в_СЭД(
- FunctionStateRequest functionStateRequest) {
- SubjectInstanceBean subjInstBean = getSubjectInstance();
- String userId = subjInstBean.getEditor();
- // IUserBean userBean = authorizationApi.getUser(userId);
- DocMangmntActions.requestAgreemant(subjInstBean, userId, false);
- return new FunctionStateResponse(
- "FunctionTransitionDescription_Kc1EAUOxEee9zf2TMLhdUg");
- }
- /**
- * @generated
- */
- // private static final String
- // DATA_FunctionStateDescription_xXFLUUMYEeSJ06URn4wMYA =
- // "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48Ym8yMF9maWVsZC5maWVsZC4xIHZhbHVlPSJjb21tb25BdHRyaWJ1dGVzLmNsYWltU3RhdHVzIi8+PGJvMjBfZmllbGQuc3RvcmFnZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxTVEFURV9JRCB2YWx1ZT0iRnVuY3Rpb25TdGF0ZURlc2NyaXB0aW9uX3hYRkxVVU1ZRWVTSjA2VVJuNHdNWUEiLz48c3RvcmFnZS52YWx1ZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxibzIwX2ZpZWxkLmJvIHZhbHVlPSJydS5ydXNwb3N0LmFwcGxpY2F0aW9uLkFwcGxpY2F0aW9uQ2FyZE5vUnVsZXNWaWV3Ii8+PGJvMjBfZmllbGQudmFsdWUuMiB2YWx1ZT0idHJ1ZSIvPjxibzIwX2ZpZWxkLnZhbHVlLjEgdmFsdWU9ImludGVybWVkaWF0ZUFuc3dlcmVkQ2xhaW0iLz48Ym8yMF9maWVsZC50eXBlLjIgdmFsdWU9IkJPT0xFQU4iLz48Ym8yMF9maWVsZC5tb2RlIHZhbHVlPSJjaGVjayIvPjxibzIwX2ZpZWxkLnR5cGUuMSB2YWx1ZT0iRU5VTSIvPjxibzIwX2ZpZWxkLmZpZWxkLjIgdmFsdWU9ImludGVybWVkaWFyeUFuc3dlclNlbnQiLz48L2NvbmZpZ3VyYXRpb24+";
- /**
- * @generated
- */
- // private static final String
- // DATA_FunctionStateDescription_xXFLUUMYEeSJ06URn4wMYA =
- // "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48Ym8yMF9maWVsZC5maWVsZC4xIHZhbHVlPSJjb21tb25BdHRyaWJ1dGVzLmNsYWltU3RhdHVzIi8+PGJvMjBfZmllbGQuc3RvcmFnZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxTVEFURV9JRCB2YWx1ZT0iRnVuY3Rpb25TdGF0ZURlc2NyaXB0aW9uX3hYRkxVVU1ZRWVTSjA2VVJuNHdNWUEiLz48c3RvcmFnZS52YWx1ZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxibzIwX2ZpZWxkLmJvIHZhbHVlPSJydS5ydXNwb3N0LmFwcGxpY2F0aW9uLkFwcGxpY2F0aW9uQ2FyZE5vUnVsZXNWaWV3Ii8+PGJvMjBfZmllbGQudmFsdWUuMiB2YWx1ZT0idHJ1ZSIvPjxibzIwX2ZpZWxkLnZhbHVlLjEgdmFsdWU9ImludGVybWVkaWF0ZUFuc3dlcmVkQ2xhaW0iLz48Ym8yMF9maWVsZC50eXBlLjIgdmFsdWU9IkJPT0xFQU4iLz48Ym8yMF9maWVsZC5tb2RlIHZhbHVlPSJjaGVjayIvPjxibzIwX2ZpZWxkLnR5cGUuMSB2YWx1ZT0iRU5VTSIvPjxibzIwX2ZpZWxkLmZpZWxkLjIgdmFsdWU9ImludGVybWVkaWFyeUFuc3dlclNlbnQiLz48L2NvbmZpZ3VyYXRpb24+";
- /**
- * This method is called when the named function state is reached State:
- * UPDT: Подготовлен промежуточный ответ StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_J_iK0X3XEeemT7YtZZHnbQ" when
- * result is "" to go to state Зар. пр. ответ в СЭД
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- * @generated
- */
- @RefinementGenerator(id = "FunctionStateDescription_C0VIYX3XEeemT7YtZZHnbQ")
- public FunctionStateResponse functionUPDT__Подготовлен_промежуточный_ответ(
- FunctionStateRequest functionStateRequest) {
- de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime refinementRuntime = new de.metasonic.reftmpl.fieldvaluesetter.runtime.RefinementTemplateRuntime();
- de.metasonic.support.context.ApplicationContextProvider.getInstance()
- .getApplicationContext().getAutowireCapableBeanFactory()
- .autowireBean(refinementRuntime);
- refinementRuntime
- .setStateConfig(DATA_FunctionStateDescription_C0VIYX3XEeemT7YtZZHnbQ);
- try {
- return (FunctionStateResponse) refinementRuntime.execute(
- getSubjectInstance(), getSubjectDescription(), getClass()
- .getClassLoader());
- } catch (Exception ex) {
- throw new RuntimeException(ex);
- }
- }
- /**
- * @generated
- */
- private static final String DATA_SendStateDescription_ChKrMOtVEeOr99WSB0SeVA = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48U1RBVEVfSUQgdmFsdWU9IlNlbmRTdGF0ZURlc2NyaXB0aW9uX0NoS3JNT3RWRWVPcjk5V1NCMFNlVkEiLz48Ym8yMF9maWVsZC5ibyB2YWx1ZT0icnUucnVzcG9zdC5hcHBsaWNhdGlvbi5BcHBsaWNhdGlvbkNhcmROb1J1bGVzVmlldyIvPjxibzIwX2ZpZWxkLmZpZWxkIHZhbHVlPSJjb21tb25BdHRyaWJ1dGVzLmNsYWltUmVzcG9uc2libGVEZXBhcnRtZW50Lm1hbmFnZXJHcm91cE5hbWUiLz48Ym8yMF9maWVsZC50eXBlIHZhbHVlPSJTVFJJTkciLz48dXNlck9yR3JvdXBfZmllbGQudmFsdWUgdmFsdWU9Imdyb3VwX25hbWUiLz48Ym8yMF9maWVsZC5tb2RlIHZhbHVlPSJzaW5nbGUiLz48Ym8yMF9maWVsZC5zdG9yYWdlIHZhbHVlPSJCT1N0b3JhZ2VEZXNjcmlwdGlvbl9IbzF0QU92QUVlT2NtY3F5dm5ucHpBIi8+PC9jb25maWd1cmF0aW9uPg==";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_eHNkqEPxEeSk8dw1p8cjjQ = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48U1RBVEVfSUQgdmFsdWU9IkZ1bmN0aW9uU3RhdGVEZXNjcmlwdGlvbl9lSE5rcUVQeEVlU2s4ZHcxcDhjampRIi8+PGJvMjBfZmllbGQuYm8gdmFsdWU9InJ1LnJ1c3Bvc3QuYXBwbGljYXRpb24uQXBwbGljYXRpb25DYXJkTm9SdWxlc1ZpZXciLz48c3RvcmFnZS52YWx1ZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxibzIwX2ZpZWxkLnR5cGUuMSB2YWx1ZT0iRU5VTSIvPjxibzIwX2ZpZWxkLnZhbHVlLjEgdmFsdWU9ImNsb3NlZENsYWltIi8+PGJvMjBfZmllbGQubW9kZSB2YWx1ZT0iY2hlY2siLz48Ym8yMF9maWVsZC5maWVsZC4xIHZhbHVlPSJjb21tb25BdHRyaWJ1dGVzLmNsYWltU3RhdHVzIi8+PGJvMjBfZmllbGQuc3RvcmFnZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjwvY29uZmlndXJhdGlvbj4=";
- /**
- * @generated
- */
- private static final String DATA_SendStateDescription_EzivYe13EeO7cYoeJG3F3g = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48U1RBVEVfSUQgdmFsdWU9IlNlbmRTdGF0ZURlc2NyaXB0aW9uX0V6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bl9IbzF0QU92QUVlT2NtY3F5dm5ucHpBIi8+PC9jb25maWd1cmF0aW9uPg==";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_xonkwUMWEeSJ06URn4wMYA = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48U1RBVEVfSUQgdmFsdWU9IkZ1bmN0aW9uU3RhdGVEZXNjcmlwdGlvbl94b25rd1VNV0VlU0owNlVSbjR3TVlBIi8+PGJvMjBfZmllbGQuYm8gdmFsdWU9InJ1LnJ1c3Bvc3QuYXBwbGljYXRpb24uQXBwbGljYXRpb25DYXJkTm9SdWxlc1ZpZXciLz48c3RvcmFnZS52YWx1ZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxibzIwX2ZpZWxkLnR5cGUuMSB2YWx1ZT0iRU5VTSIvPjxibzIwX2ZpZWxkLnZhbHVlLjEgdmFsdWU9ImFuYWx5c2lzQ2xhaW0iLz48Ym8yMF9maWVsZC5tb2RlIHZhbHVlPSJjaGVjayIvPjxibzIwX2ZpZWxkLmZpZWxkLjEgdmFsdWU9ImNvbW1vbkF0dHJpYnV0ZXMuY2xhaW1TdGF0dXMiLz48Ym8yMF9maWVsZC5zdG9yYWdlIHZhbHVlPSJCT1N0b3JhZ2VEZXNjcmlwdGlvbl9IbzF0QU92QUVlT2NtY3F5dm5ucHpBIi8+PC9jb25maWd1cmF0aW9uPg==";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_sYmHgXogEeSAgPNivYu06Q = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48c3ViamVjdC52YWx1ZSB2YWx1ZT0i0J/QvtGB0YLRg9C/0LjQu9CwINC60L7Qv9C40Y8g0L7RgtCy0LXRgtCwINC/0L4g0L7QsdGA0LDRidC10L3QuNGO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J5Tm9SdWxlc1ZpZXciLz48dGFyZ2V0X2ZpZWxkdHJlZS5zdG9yYWdlIHZhbHVlPSJCT1N0b3JhZ2VEZXNjcmlwdGlvbl9wTG9KQUh1UUVlU3dOcnBZX2J4Z3NBIi8+PHNvdXJjZV9maWVsZHRyZWUuc3RvcmFnZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fVWN2Z1lIcm1FZVN4UUo1Y1Vkc3FTQSIvPjwvY29uZmlndXJhdGlvbj4=";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_RilbIXuQEeSwNrpY_bxgsA = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48c291cmNlX3N0b3JhZ2UudGFyZ2V0IHZhbHVlPSJCT1N0b3JhZ2VEZXNjcmlwdGlvbl8xeXdvb0h1UUVlU3dOcnBZX2J4Z3NBIi8+PFNUQVRFX0lEIHZhbHVlPSJGdW5jdGlvblN0YXRlRGVzY3JpcHRpb25fUmlsYklYdVFFZVN3TnJwWV9ieGdzQSIvPjxkdW1wX2FjdGlvbi52YWx1ZSB2YWx1ZT0ia2VlcCIvPjxzb3VyY2Vfc3RvcmFnZS5zdG9yYWdlIHZhbHVlPSJCT1N0b3JhZ2VEZXNjcmlwdGlvbl9wTG9KQUh1UUVlU3dOcnBZX2J4Z3NBIi8+PHRyYW5zaXRpb25fZGlzdHJpYnV0ZS52YWx1ZSB2YWx1ZT0iRnVuY3Rpb25UcmFuc2l0aW9uRGVzY3JpcHRpb25faFhMOFVYdVFFZVN3TnJwWV9ieGdzQSIvPjx0cmFuc2l0aW9uX2VtcHR5LnZhbHVlIHZhbHVlPSJGdW5jdGlvblRyYW5zaXRpb25EZXNjcmlwdGlvbl9oWEw4VVh1UUVlU3dOcnBZX2J4Z3NBIi8+PC9jb25maWd1cmF0aW9uPg==";
- /**
- * @generated
- */
- private static final String DATA_SendStateDescription_Rq4goYEkEeSYGqzav8IP3Q = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48U1RBVEVfSUQgdmFsdWU9IlNlbmRTdGF0ZURlc2NyaXB0aW9uX1JxNGdvWUVrRWVTWUdxemF2OElQM1EiLz48Ym8yMF9maWVsZC5ibyB2YWx1ZT0icnUucnVzcG9zdC5hcHBsaWNhdGlvbi5BcHBsaWNhdGlvbkNhcmROb1J1bGVzVmlldyIvPjxibzIwX2ZpZWxkLmZpZWxkIHZhbHVlPSJjb21tb25BdHRyaWJ1dGVzLmNsYWltUmVzcG9uc2libGVEZXBhcnRtZW50Lm1hbmFnZXJHcm91cE5hbWUiLz48Ym8yMF9maWVsZC50eXBlIHZhbHVlPSJTVFJJTkciLz48dXNlck9yR3JvdXBfZmllbGQudmFsdWUgdmFsdWU9Imdyb3VwX25hbWUiLz48Ym8yMF9maWVsZC5tb2RlIHZhbHVlPSJzaW5nbGUiLz48Ym8yMF9maWVsZC5zdG9yYWdlIHZhbHVlPSJCT1N0b3JhZ2VEZXNjcmlwdGlvbl9IbzF0QU92QUVlT2NtY3F5dm5ucHpBIi8+PC9jb25maWd1cmF0aW9uPg==";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_PwrrMYxQEeS_DedIEhcxYA = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48U1RBVEVfSUQgdmFsdWU9IkZ1bmN0aW9uU3RhdGVEZXNjcmlwdGlvbl9Qd3JyTVl4UUVlU19EZWRJRWhjeFlBIi8+PFN0b3JhZ2VTZWxlY3Rvci52YWx1ZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjwvY29uZmlndXJhdGlvbj4=";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_cMfbcYzbEeSCuKxBmW_9PQ = "PD94bWwgdmVy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cmRPdXRzaWRlIi8+PGJvMjBfZmllbGQubW9kZSB2YWx1ZT0iY2hlY2siLz48Ym8yMF9maWVsZC5maWVsZC4xIHZhbHVlPSJjb21tb25BdHRyaWJ1dGVzLmNsYWltU3RhdHVzIi8+PGJvMjBfZmllbGQuc3RvcmFnZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjwvY29uZmlndXJhdGlvbj4=";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_h7rR4hBdEeerWdDLx9TJVw = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48U1RBVEVfSUQgdmFsdWU9IkZ1bmN0aW9uU3RhdGVEZXNjcmlwdGlvbl9oN3JSNGhCZEVlZXJXZERMeDlUSlZ3Ii8+PGJvMjBfZmllbGQuYm8gdmFsdWU9InJ1LnJ1c3Bvc3QuYXBwbGljYXRpb24uQXBwbGljYXRpb25DYXJkTm9SdWxlc1ZpZXciLz48c3RvcmFnZS52YWx1ZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxibzIwX2ZpZWxkLnR5cGUuMSB2YWx1ZT0iRU5VTSIvPjxibzIwX2ZpZWxkLnZhbHVlLjEgdmFsdWU9InJlZnVzZVJlcXVlc3QiLz48Ym8yMF9maWVsZC5tb2RlIHZhbHVlPSJjaGVjayIvPjxibzIwX2ZpZWxkLmZpZWxkLjEgdmFsdWU9ImNvbW1vbkF0dHJpYnV0ZXMuY2xhaW1TdGF0dXMiLz48Ym8yMF9maWVsZC5zdG9yYWdlIHZhbHVlPSJCT1N0b3JhZ2VEZXNjcmlwdGlvbl9IbzF0QU92QUVlT2NtY3F5dm5ucHpBIi8+PC9jb25maWd1cmF0aW9uPg==";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_ShNSgBBe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JjaGVjayIvPjxibzIwX2ZpZWxkLmZpZWxkLjEgdmFsdWU9ImlzTmV3VGFzayIvPjxibzIwX2ZpZWxkLnN0b3JhZ2UgdmFsdWU9IkJPU3RvcmFnZURlc2NyaXB0aW9uX0hvMXRBT3ZBRWVPY21jcXl2bm5wekEiLz48L2NvbmZpZ3VyYXRpb24+";
- /**
- * @generated
- */
- private static final String DATA_FunctionStateDescription_C0VIYX3XEeemT7YtZZHnbQ = "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29uZmlndXJhdGlvbj48U1RBVEVfSUQgdmFsdWU9IkZ1bmN0aW9uU3RhdGVEZXNjcmlwdGlvbl9DMFZJWVgzWEVlZW1UN1l0WlpIbmJRIi8+PGJvMjBfZmllbGQuYm8gdmFsdWU9InJ1LnJ1c3Bvc3QuYXBwbGljYXRpb24uQXBwbGljYXRpb25DYXJkTm9SdWxlc1ZpZXciLz48c3RvcmFnZS52YWx1ZSB2YWx1ZT0iQk9TdG9yYWdlRGVzY3JpcHRpb25fSG8xdEFPdkFFZU9jbWNxeXZubnB6QSIvPjxibzIwX2ZpZWxkLnR5cGUuMSB2YWx1ZT0iQk9PTEVBTiIvPjxibzIwX2ZpZWxkLnZhbHVlLjEgdmFsdWU9InRydWUiLz48Ym8yMF9maWVsZC5tb2RlIHZhbHVlPSJjaGVjayIvPjxibzIwX2ZpZWxkLmZpZWxkLjEgdmFsdWU9ImludGVybWVkaWFyeUFuc3dlclNlbnQiLz48Ym8yMF9maWVsZC5zdG9yYWdlIHZhbHVlPSJCT1N0b3JhZ2VEZXNjcmlwdGlvbl9IbzF0QU92QUVlT2NtY3F5dm5ucHpBIi8+PC9jb25maWd1cmF0aW9uPg==";
- /**
- * This state is an exit state Do all necessary clean up here. State: Copy
- * of email: Отправить клиенту ответ на обращение StateType: EXIT
- */
- @RefinementGenerator(id = "FunctionStateDescription_xmQhUIDgEeeSLusIiNXYug")
- public void Copy_of_emailFinalUfpsAnswer(String subjectInstanceId) {
- }
- /**
- * This method is called when the named function state is reached State:
- * email: Отпправить клиенту ответ на обращение СЭД StateType: FUNCTION
- *
- * Return values "FunctionTransitionDescription_Hk0_gYDjEeeSLusIiNXYug" when
- * result is "" to go to state Status UPDT: Ответ отправлен
- *
- * @return return the id of the transition to follow e.g. // return new
- * FunctionStateResponse("transitionXXXXXXXX");
- */
- @RefinementGenerator(id = "FunctionStateDescription_eEk_gYDiEeeSLusIiNXYug")
- public FunctionStateResponse functionemail__Отпправить_клиенту_ответ_на_обращение_СЭД(
- FunctionStateRequest functionStateRequest) {
- System.out.println("emailFinalUfpsAnswer: start");
- Bo20Accessory boAccessory = new Bo20Accessory(getSubjectInstance());
- try {
- IStorageInstanceItemBeanReducedToId firstStorageItemInFirstStorage = boAccessory
- .getFirstStorageItemInFirstStorage();
- if (firstStorageItemInFirstStorage != null) {
- IView view = boAccessory
- .loadView(firstStorageItemInFirstStorage);
- if (view instanceof ApplicationCardNoRulesView) {
- ApplicationCardNoRulesView applicationCard = (ApplicationCardNoRulesView) view;
- String claimId = applicationCard
- .getClaimIncomingAttributes().getClaimIsoId();
- System.out.println("emailFinalUfpsAnswer: claimId = "
- + claimId);
- String claimExternalId = applicationCard
- .getClaimIncomingAttributes()
- .getExternalIncomingId();
- System.out
- .println("emailFinalUfpsAnswer: claimExternalId = "
- + claimExternalId);
- String userId = applicationCard.getTechdata()
- .getCurrentUserId();
- System.out.println("emailFinalUfpsAnswer: userId = "
- + userId);
- String procInstId = applicationCard.getProcInstId();
- System.out.println("emailFinalUfpsAnswer: procInstId = "
- + procInstId);
- String subjInstId = applicationCard.getSubjInstId();
- System.out.println("emailFinalUfpsAnswer: subjInstId = "
- + subjInstId);
- String customerEmail = applicationCard.getCustomerInfo()
- .getCustomerEmail();
- System.out.println("emailFinalUfpsAnswer: customerEmail = "
- + customerEmail);
- System.out
- .println("emailFinalUfpsAnswer: attempt to execute MailSender");
- MailSender
- .execute(
- userId,
- procInstId,
- subjInstId,
- customerEmail,
- "ROOT/Ответ на обращение",
- "russianpost" + claimId + ".zip",
- "Ответ на обращение №" + claimId,
- "Уважаемый клиент,\n"
- + "Во вложении к данному письму направляем ответ на Ваше обращение № "
- + claimId
- + "\n\nФГУП \"Почта России\".");
- System.out
- .println("emailFinalUfpsAnswer: MailSender execution completed, please check for the email delivery");
- }
- }
- else {
- log.warn("No storage items found for subject instance "
- + getSubjectInstance());
- }
- } catch (Exception e) {
- log.error(e);
- }
- System.out
- .println("emailFinalUfpsAnswer: finished with emailFinalUfpsAnswer, return FunctionStateResponse");
- return new FunctionStateResponse(
- "FunctionTransitionDescription_Hk0_gYDjEeeSLusIiNXYug");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment