Objetivo: Configurar os Processos Agendados das integrações. Com esta configuração os processos serão habilitados em “Administração > Processos Agendados”. Estes processos serão responsáveis para buscar ou enviar informações para o RM. Os processos agendados são: Sincronização do Centro de Custo (RM), Sincronização de Cliente/Fornecedor (RM), Sincronização de Contas de Custeio (Natureza Orçamentária) – RM, Sincronização de Locais de Estoque (RM), Sincronização de Movimentações (RM), Sincronização de Produto (RM), Sincronização de Tabelas de Classificação (RM), Sincronização de Contas de Custeio – RM, Sincronização de Unidade de Medida – RM, Sincronização de Itens Atendidos - RM.
Editar o arquivo services_client que se encontra no diretório “.....\PIMSMulticultivos\config\”instancia”\pimsmc_client”, e efetuar as seguintes inclusões:
Adicionar as seguintes instruções, abaixo do módulo “<provider name="enaltarex"”
<provider name="warehouseProcessIntegration" class="br.agr.proxima.geoagricola.smarterp.facade.WarehouseErpProcessExecutor" active="true">
<services>
<service name="warehouseIntegration" method="execute" />
<service name="WarehouseProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.warehouseProcessIntegration.warehouseIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="classificationTableProcessIntegration" class="br.agr.proxima.geoagricola.smarterp.facade.ClassificationTableProcessExecutor" active="true">
<services>
<service name="classificationTableIntegration" method="execute" />
<service name="ClassificationTableProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.classificationTableProcessIntegration.classificationTableIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="movementProcessIntegration" class="br.agr.proxima.geoagricola.smarterp.facade.MovementProcessExecutor" active="true">
<services>
<service name="movementIntegration" method="execute" />
<service name="MovementProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.movementProcessIntegration.movementIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="clearRmIntegrationLogs" class="br.agr.proxima.geoagricola.rmsincronizacaodados.log.ClearRmLogsExecutor" active="true">
<services>
<service name="clearLogs" method="execute" />
<service name="ClearRmIntegrationLogs" schedule="0 3 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.clearRmIntegrationLogs.clearLogs" />
</chain>
</service>
</services>
</provider>
<provider name="customerVendorProcessIntegration" class="br.agr.proxima.geoagricola.smarterp.facade.CustomerVendorProcessExecutor" active="true">
<services>
<service name="customerVendorIntegration" method="execute" />
<service name="CustomerVendorProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.customerVendorProcessIntegration.customerVendorIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="costCenterProcessIntegration" class="br.agr.proxima.geoagricola.smarterp.facade.CostCenterProcessExecutor" active="true">
<services>
<service name="costCenterIntegration" method="execute" />
<service name="CostCenterProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.costCenterProcessIntegration.costCenterIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="financialBudgetaryNatures" class="br.agr.proxima.geoagricola.smarterp.facade.FinancialBudgetaryNaturesProcessExecutor" active="true">
<services>
<service name="financialBudgetaryNaturesIntegration" method="execute" />
<service name="FinancialBudgetaryNaturesProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.financialBudgetaryNatures.financialBudgetaryNaturesIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="productProcessIntegration" class="br.agr.proxima.geoagricola.smarterp.facade.ProductProcessExecutor" active="true">
<services>
<service name="productIntegration" method="execute" />
<service name="ProductProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.productProcessIntegration.productIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="accountingPlan" class="br.agr.proxima.geoagricola.smarterp.facade.AccountingPlanProcessExecutor" active="true">
<services>
<service name="accountingPlanIntegration" method="execute" />
<service name="AccountingPlanProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.accountingPlan.accountingPlanIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="unitOfMeassures" class="br.agr.proxima.geoagricola.smarterp.facade.UnitOfMeassuresProcessExecutor" active="true">
<services>
<service name="unitOfMeassuresIntegration" method="execute" />
<service name="UnitOfMeassuresProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentoagricola.unitOfMeassures.unitOfMeassuresIntegration" />
</chain>
</service>
</services>
</provider>
<provider name="reportInputs" class="br.agr.proxima.geoagricola.smarterp.facade.ReportInputsProcessExecutor" active="true">
<services>
<service name="reportInputsIntegration" method="execute" />
<service name="ReportInputsProcess" schedule="0 0/60 * * * ?" durable="true" cluster-name="PIMSGRAOS" group-name="PRX">
<chain>
<call service="persistence://apontamentosmanutencao.reportInputs.reportInputsIntegration" />
</chain>
</service>
</services>
</provider>
Em continuação a edição do arquivo services_client encontrado no diretório “.....\PIMSMulticultivos\config\”instancia”\pimsmc_client”, busque pelo provider "<provider name="servicooficina"..." e ANTES deste provider acrescente o trecho abaixo, caso não exista. O conteúdo da tag "value" dependerá da configuração de movimentos realizada no RM, consulte 02-Informar os Tipos de Movimento.
<provider name="solicitacaomaterialservicooficina" class="br.agr.proxima.geoagricola.apontamentosmanutencao.servicooficina.solicitacaomaterial.SolicitacaoMaterialServicoOficinaDAO" active="true">
<services>
<service name="Cadastrar" method="insert">
<var name="interno.tipoMovimento" type="java.lang.String" value="VALOR_1" />
<var name="externo.tipoMovimento" type="java.lang.String" value="VALOR_2" />
<var name="devolucao.tipoMovimento" type="java.lang.String" value="VALOR_3" />
</service>
<service name="Atualizar" method="update">
<var name="interno.tipoMovimento" type="java.lang.String" value="VALOR_1" />
<var name="externo.tipoMovimento" type="java.lang.String" value="VALOR_2" />
<var name="devolucao.tipoMovimento" type="java.lang.String" value="VALOR_3" />
</service>
</services>
</provider>
Conforme exemplo:
Para assumir as alterações será necessário parar e subir a aplicação do Totvs Agro Multicultivos.