att
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<java version="1.8.0_461" class="java.beans.XMLDecoder">
|
||||
<java version="1.8.0_202" class="java.beans.XMLDecoder">
|
||||
<object class="java.util.HashMap">
|
||||
<void method="put">
|
||||
<string>camposFormulario, documentoId = 2297</string>
|
||||
<array class="java.lang.String" length="0"/>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>volume</string>
|
||||
<array class="java.lang.String" length="1">
|
||||
@@ -13,81 +9,6 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>mecanismoGrupo</string>
|
||||
<object class="java.util.ArrayList">
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Aprovadores Compras Nvl 3</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>AprovadoresComprasNvl3</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Compras Indiretos</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>ComprasIndiretos</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Obras e manutenção</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Manutencao</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Motoristas</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Motoristas</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Recrutamento</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Recrutamento</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Requisitantes de Vaga</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Requisitantesdevaga</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Tecnologia e Comunicação</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>TIC</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>expediente</string>
|
||||
<array class="java.lang.String" length="4">
|
||||
@@ -107,7 +28,7 @@
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>mecanismo</string>
|
||||
<array class="[Ljava.lang.Object;" length="10">
|
||||
<array class="[Ljava.lang.Object;" length="12">
|
||||
<void index="0">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
@@ -129,6 +50,26 @@
|
||||
</array>
|
||||
</void>
|
||||
<void index="2">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>dpf_di_emp_filial_filtro</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>dpf_di_emp_filial_filtro</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="3">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>dpf_di_inicio_diadmissao</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>dpf_di_inicio_diadmissao</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="4">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Executor de Atividade</string>
|
||||
@@ -138,7 +79,7 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="3">
|
||||
<void index="5">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Grupo</string>
|
||||
@@ -148,7 +89,7 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="4">
|
||||
<void index="6">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Grupos do Colaborador</string>
|
||||
@@ -158,7 +99,7 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="5">
|
||||
<void index="7">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>mecCustomAprov</string>
|
||||
@@ -168,7 +109,7 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="6">
|
||||
<void index="8">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Papel</string>
|
||||
@@ -178,7 +119,7 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="7">
|
||||
<void index="9">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição para um Grupo</string>
|
||||
@@ -188,7 +129,7 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="8">
|
||||
<void index="10">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição para um Papel</string>
|
||||
@@ -198,7 +139,7 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="9">
|
||||
<void index="11">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Usuário</string>
|
||||
@@ -210,482 +151,5 @@
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>forms</string>
|
||||
<object class="java.util.LinkedList">
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>FLUIGADHOC</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>FLUIGADHOC</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>3</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>FLUIGADHOCPROCESS</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>FLUIGADHOCPROCESS</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>4</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_dataset_tipo_ocorrencia</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_dataset_tipo_ocorrencia</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>14</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_abertura_chamado</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_abertura_chamado</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>15</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>DSFormulariodeAberturadechamado</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Formulário de Abertura de chamado</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>20</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>Abertura_de_chamados</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Solicitação de abertura de chamados</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>21</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>DSvistoriadeServico</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>vistoriadeServico</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>24</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>DSFormulariodeReservadesala</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Formulário de Reserva de sala</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>34</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_dataset_centrocusto</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_dataset_centrocusto</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>103</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_dataset_cadastro_item</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_dataset_cadastro_item</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>104</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_dataset_estabelecimento</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_dataset_estabelecimento</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>105</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_solicitacao_compras</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_solicitacao_compras</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>165</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>aberturadechamado_manutencao</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>aberturadechamado_manutencao</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>400</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>Solicitacao_transferencia</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Solicitacao_transferencia</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>590</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>recrutamento</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>recrutamento</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>823</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>kit_aniversariantes</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Aniversariantes</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>7690</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>kit_cardapio</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Cardápio do Dia</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>7695</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>kit_convenios</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Convênios</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>7703</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>kit_news</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Notícias</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>7709</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>compras_digital</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>compras_digital</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>9305</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>camposFormulario, documentoId = 9305</string>
|
||||
<array class="java.lang.String" length="69">
|
||||
<void index="0">
|
||||
<string>activity</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>centro_custo</string>
|
||||
</void>
|
||||
<void index="2">
|
||||
<string>ceo_validacao_aprova</string>
|
||||
</void>
|
||||
<void index="3">
|
||||
<string>codigocentroCusto</string>
|
||||
</void>
|
||||
<void index="4">
|
||||
<string>Codproduto</string>
|
||||
</void>
|
||||
<void index="5">
|
||||
<string>cotacaoSCProtheus</string>
|
||||
</void>
|
||||
<void index="6">
|
||||
<string>currentUserId</string>
|
||||
</void>
|
||||
<void index="7">
|
||||
<string>currentUsermail</string>
|
||||
</void>
|
||||
<void index="8">
|
||||
<string>currentUserName</string>
|
||||
</void>
|
||||
<void index="9">
|
||||
<string>dataCadastroSCProtheus</string>
|
||||
</void>
|
||||
<void index="10">
|
||||
<string>dataNec</string>
|
||||
</void>
|
||||
<void index="11">
|
||||
<string>dataValidacaoItens</string>
|
||||
</void>
|
||||
<void index="12">
|
||||
<string>data_validacao_aprova</string>
|
||||
</void>
|
||||
<void index="13">
|
||||
<string>data_validacao_aprova_ceo</string>
|
||||
</void>
|
||||
<void index="14">
|
||||
<string>data_validacao_aprova_gerf</string>
|
||||
</void>
|
||||
<void index="15">
|
||||
<string>data_validacao_aprova_gestor</string>
|
||||
</void>
|
||||
<void index="16">
|
||||
<string>data_validacao_gestor</string>
|
||||
</void>
|
||||
<void index="17">
|
||||
<string>descProduto</string>
|
||||
</void>
|
||||
<void index="18">
|
||||
<string>emailSolicitante</string>
|
||||
</void>
|
||||
<void index="19">
|
||||
<string>emissaoSCProtheus</string>
|
||||
</void>
|
||||
<void index="20">
|
||||
<string>empresa</string>
|
||||
</void>
|
||||
<void index="21">
|
||||
<string>estabelecimento</string>
|
||||
</void>
|
||||
<void index="22">
|
||||
<string>fdComprovante</string>
|
||||
</void>
|
||||
<void index="23">
|
||||
<string>filialdest</string>
|
||||
</void>
|
||||
<void index="24">
|
||||
<string>filialest</string>
|
||||
</void>
|
||||
<void index="25">
|
||||
<string>filialprotheus</string>
|
||||
</void>
|
||||
<void index="26">
|
||||
<string>fnComprovante</string>
|
||||
</void>
|
||||
<void index="27">
|
||||
<string>formMode</string>
|
||||
</void>
|
||||
<void index="28">
|
||||
<string>gerf_validacao_aprova</string>
|
||||
</void>
|
||||
<void index="29">
|
||||
<string>gestor_cc</string>
|
||||
</void>
|
||||
<void index="30">
|
||||
<string>gestor_validacao_aprova</string>
|
||||
</void>
|
||||
<void index="31">
|
||||
<string>horaCadastroSCProtheus</string>
|
||||
</void>
|
||||
<void index="32">
|
||||
<string>item</string>
|
||||
</void>
|
||||
<void index="33">
|
||||
<string>justificativaDecisaoItens</string>
|
||||
</void>
|
||||
<void index="34">
|
||||
<string>justificativaValidaProblema</string>
|
||||
</void>
|
||||
<void index="35">
|
||||
<string>justi_decisao_aprova</string>
|
||||
</void>
|
||||
<void index="36">
|
||||
<string>justi_decisao_aprova_ceo</string>
|
||||
</void>
|
||||
<void index="37">
|
||||
<string>justi_decisao_aprova_gerente</string>
|
||||
</void>
|
||||
<void index="38">
|
||||
<string>justi_decisao_aprova_gestor</string>
|
||||
</void>
|
||||
<void index="39">
|
||||
<string>justi_decisao_gestor</string>
|
||||
</void>
|
||||
<void index="40">
|
||||
<string>moreInfo</string>
|
||||
</void>
|
||||
<void index="41">
|
||||
<string>numeroSCProtheus</string>
|
||||
</void>
|
||||
<void index="42">
|
||||
<string>observacoes</string>
|
||||
</void>
|
||||
<void index="43">
|
||||
<string>pedidoSCProtheus</string>
|
||||
</void>
|
||||
<void index="44">
|
||||
<string>preco</string>
|
||||
</void>
|
||||
<void index="45">
|
||||
<string>produto</string>
|
||||
</void>
|
||||
<void index="46">
|
||||
<string>produtoCod</string>
|
||||
</void>
|
||||
<void index="47">
|
||||
<string>produtoDesc</string>
|
||||
</void>
|
||||
<void index="48">
|
||||
<string>produtoLink</string>
|
||||
</void>
|
||||
<void index="49">
|
||||
<string>qtd</string>
|
||||
</void>
|
||||
<void index="50">
|
||||
<string>qtdc</string>
|
||||
</void>
|
||||
<void index="51">
|
||||
<string>qtdItensSCProtheus</string>
|
||||
</void>
|
||||
<void index="52">
|
||||
<string>quantidade</string>
|
||||
</void>
|
||||
<void index="53">
|
||||
<string>requesterId</string>
|
||||
</void>
|
||||
<void index="54">
|
||||
<string>requesterMail</string>
|
||||
</void>
|
||||
<void index="55">
|
||||
<string>selecionado</string>
|
||||
</void>
|
||||
<void index="56">
|
||||
<string>solicitanteSCProtheus</string>
|
||||
</void>
|
||||
<void index="57">
|
||||
<string>statusAtendimento</string>
|
||||
</void>
|
||||
<void index="58">
|
||||
<string>statusSCProtheus</string>
|
||||
</void>
|
||||
<void index="59">
|
||||
<string>tipoSolicitacao</string>
|
||||
</void>
|
||||
<void index="60">
|
||||
<string>total</string>
|
||||
</void>
|
||||
<void index="61">
|
||||
<string>urgencia</string>
|
||||
</void>
|
||||
<void index="62">
|
||||
<string>userValidacaoItens</string>
|
||||
</void>
|
||||
<void index="63">
|
||||
<string>user_validacao_aprova</string>
|
||||
</void>
|
||||
<void index="64">
|
||||
<string>user_validacao_gestor</string>
|
||||
</void>
|
||||
<void index="65">
|
||||
<string>usuarioSolicitante</string>
|
||||
</void>
|
||||
<void index="66">
|
||||
<string>validacaoItens</string>
|
||||
</void>
|
||||
<void index="67">
|
||||
<string>valorTotalCotacao</string>
|
||||
</void>
|
||||
<void index="68">
|
||||
<string>WKNumProces</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
</object>
|
||||
</java>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<processDefinitionVersionPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compra - Ginseng</processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
</processDefinitionVersionPK>
|
||||
<versionDescription></versionDescription>
|
||||
<formId>9305</formId>
|
||||
@@ -1009,7 +1009,7 @@
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<expressionOrder>1</expressionOrder>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<sequence>46</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>hAPI.getCardValue("validacaoItens") == "entregue"</condition>
|
||||
@@ -1021,7 +1021,7 @@
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<expressionOrder>2</expressionOrder>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<sequence>46</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>true</condition>
|
||||
@@ -1033,7 +1033,7 @@
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<expressionOrder>1</expressionOrder>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<sequence>128</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>parseFloat(hAPI.getCardValue("valorTotalCotacao")) <= 100000.00</condition>
|
||||
@@ -1047,7 +1047,7 @@
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<expressionOrder>1</expressionOrder>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<sequence>150</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>parseFloat(hAPI.getCardValue("valorTotalCotacao")) >= 5001.00 && 
|
||||
@@ -1063,7 +1063,7 @@ parseFloat(hAPI.getCardValue("valorTotalCotacao")) <= 50000.00
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<expressionOrder>2</expressionOrder>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<sequence>150</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>true</condition>
|
||||
@@ -1077,7 +1077,7 @@ parseFloat(hAPI.getCardValue("valorTotalCotacao")) <= 50000.00
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<expressionOrder>1</expressionOrder>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<sequence>154</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>parseFloat(hAPI.getCardValue("valorTotalCotacao")) > 50000.00</condition>
|
||||
@@ -1091,7 +1091,7 @@ parseFloat(hAPI.getCardValue("valorTotalCotacao")) <= 50000.00
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<expressionOrder>2</expressionOrder>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<sequence>154</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>parseFloat(hAPI.getCardValue("valorTotalCotacao")) < 50000.00</condition>
|
||||
@@ -1536,102 +1536,110 @@ parseFloat(hAPI.getCardValue("valorTotalCotacao")) <= 50000.00
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>1</version>
|
||||
</workflowProcessEventPK>
|
||||
<eventDescription>function toProtheusDate(d) {
|
||||
if (!d) return "";
|
||||
if (d.indexOf("/") > -1) {
|
||||
var parts = d.split("/");
|
||||
return parts[2] + parts[1] + parts[0]; // dd/MM/yyyy -> yyyyMMdd
|
||||
}
|
||||
if (d.indexOf("-") > -1) {
|
||||
return d.replace(/-/g, ""); // yyyy-MM-dd -> yyyyMMdd
|
||||
}
|
||||
return d; // já está no formato certo
|
||||
}
|
||||
|
||||
function hojeProtheus() {
|
||||
var d = new Date();
|
||||
var yyyy = d.getFullYear();
|
||||
var mm = d.getMonth() + 1;
|
||||
var dd = d.getDate();
|
||||
if (mm < 10) mm = "0" + mm;
|
||||
if (dd < 10) dd = "0" + dd;
|
||||
return "" + yyyy + mm + dd; // yyyyMMdd
|
||||
}
|
||||
|
||||
function servicetask82(attempt, message) {
|
||||
log.info("🚀 Iniciando servicetask82");
|
||||
|
||||
var qtdItens = hAPI.getChildrenIndexes("tbItens");
|
||||
log.info("📦 Total de itens na tabela: " + qtdItens.length);
|
||||
|
||||
var itens = [];
|
||||
for (var i = 0; i < qtdItens.length; i++) {
|
||||
var index = qtdItens[i];
|
||||
var item = {
|
||||
"C1_PRODUTO": String(hAPI.getCardValue("Codproduto___" + index)),
|
||||
"C1_QUANT": Number(hAPI.getCardValue("qtd___" + index)),
|
||||
"C1_DATPRF": toProtheusDate(String(hAPI.getCardValue("dataNec___" + index)))
|
||||
};
|
||||
itens.push(item);
|
||||
log.info("📌 Item adicionado: " + JSON.stringify(item));
|
||||
}
|
||||
|
||||
var payload = {
|
||||
"C1_SOLICIT": String(hAPI.getCardValue("usuarioSolicitante")),
|
||||
"C1_EMISSAO": hojeProtheus(),
|
||||
"C1_FILENT": String(hAPI.getCardValue("filialProtheus")).trim(),
|
||||
"C1_OBS": String(hAPI.getCardValue("observacoes")),
|
||||
"itens": itens
|
||||
};
|
||||
|
||||
log.info("📦 Payload montado:");
|
||||
log.info(JSON.stringify(payload));
|
||||
|
||||
var data1 = {
|
||||
companyId: '1',
|
||||
serviceCode: 'Postprod',
|
||||
endpoint: '/rest/UF_MATA110',
|
||||
method: 'post',
|
||||
timeoutService: '100',
|
||||
params: payload, // objeto puro
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
var clientService = fluigAPI.getAuthorizeClientService();
|
||||
var response = clientService.invoke(JSON.stringify(data1)); // SEMPRE stringify aqui
|
||||
|
||||
log.info("📬 Resposta da API Protheus:");
|
||||
log.dir(response);
|
||||
|
||||
if (response && response.getResult()) {
|
||||
var result = JSON.parse(response.getResult());
|
||||
if (result.sucesso) {
|
||||
hAPI.setCardValue("numeroSCProtheus", result.C1_NUM || "");
|
||||
hAPI.setCardValue("statusSCProtheus", "SC cadastrada com sucesso");
|
||||
hAPI.setCardValue("solicitanteSCProtheus", result.C1_SOLICIT || "");
|
||||
hAPI.setCardValue("emissaoSCProtheus", result.C1_EMISSAO || "");
|
||||
hAPI.setCardValue("qtdItensSCProtheus", String(result.quantidade_itens || ""));
|
||||
hAPI.setCardValue("dataCadastroSCProtheus", result.data_cadastro || "");
|
||||
hAPI.setCardValue("horaCadastroSCProtheus", result.hora_cadastro || "");
|
||||
} else {
|
||||
hAPI.setCardValue("statusSCProtheus", "Erro: " + result.erro);
|
||||
throw "Erro Protheus: " + result.message;
|
||||
}
|
||||
} else {
|
||||
throw "Sem resposta da API Protheus";
|
||||
}
|
||||
} catch (e) {
|
||||
log.error("❌ Erro ao enviar SC para o Protheus: " + e);
|
||||
throw e;
|
||||
}
|
||||
|
||||
|
||||
|
||||
log.info("🏁 Finalização da servicetask82");
|
||||
}
|
||||
<eventDescription>function toProtheusDate(d) {
|
||||
if (!d) return "";
|
||||
if (d.indexOf("/") > -1) {
|
||||
var parts = d.split("/");
|
||||
return parts[2] + parts[1] + parts[0]; // dd/MM/yyyy -> yyyyMMdd
|
||||
}
|
||||
if (d.indexOf("-") > -1) {
|
||||
return d.replace(/-/g, ""); // yyyy-MM-dd -> yyyyMMdd
|
||||
}
|
||||
return d; // já está no formato certo
|
||||
}
|
||||

|
||||
function hojeProtheus() {
|
||||
var d = new Date();
|
||||
var yyyy = d.getFullYear();
|
||||
var mm = d.getMonth() + 1;
|
||||
var dd = d.getDate();
|
||||
if (mm < 10) mm = "0" + mm;
|
||||
if (dd < 10) dd = "0" + dd;
|
||||
return "" + yyyy + mm + dd; // yyyyMMdd
|
||||
}
|
||||

|
||||
function servicetask82(attempt, message) {
|
||||
log.info("🚀 Iniciando servicetask82");
|
||||

|
||||
var qtdItens = hAPI.getChildrenIndexes("tbItens");
|
||||
log.info("📦 Total de itens na tabela: " + qtdItens.length);
|
||||

|
||||
var itens = [];
|
||||
for (var i = 0; i < qtdItens.length; i++) {
|
||||
var index = qtdItens[i];
|
||||
var item = {
|
||||
"C1_PRODUTO": String(hAPI.getCardValue("Codproduto___" + index)),
|
||||
"C1_QUANT": Number(hAPI.getCardValue("qtd___" + index)),
|
||||
"C1_DATPRF": toProtheusDate(String(hAPI.getCardValue("dataNec___" + index)))
|
||||
};
|
||||
itens.push(item);
|
||||
log.info("📌 Item adicionado: " + JSON.stringify(item));
|
||||
}
|
||||

|
||||
var filial = String(hAPI.getCardValue("filialprotheus") || hAPI.getCardValue("filialProtheus") || "").trim();
|
||||
if (!filial) {
|
||||
throw "Campo de filial não preenchido no formulário (filialprotheus).";
|
||||
}
|
||||

|
||||
var payload = {
|
||||
"C1_SOLICIT": String(hAPI.getCardValue("usuarioSolicitante")),
|
||||
"C1_EMISSAO": hojeProtheus(),
|
||||
"C1_FILENT": filial,
|
||||
"C1_OBS": String(hAPI.getCardValue("observacoes")),
|
||||
"itens": itens
|
||||
};
|
||||

|
||||
log.info("📦 Payload montado:");
|
||||
log.info(JSON.stringify(payload));
|
||||

|
||||
var data1 = {
|
||||
companyId: '1',
|
||||
serviceCode: 'Postprod',
|
||||
endpoint: '/UF_MATA110',
|
||||
method: 'post',
|
||||
timeoutService: '60000',
|
||||
params: payload, // objeto puro
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
};
|
||||

|
||||
try {
|
||||
var clientService = fluigAPI.getAuthorizeClientService();
|
||||
var response = clientService.invoke(JSON.stringify(data1)); // SEMPRE stringify aqui
|
||||

|
||||
log.info("📬 Resposta da API Protheus:");
|
||||
if (response) {
|
||||
log.info("HTTP status: " + response.getHttpStatusResult());
|
||||
log.info("Body: " + response.getResult());
|
||||
}
|
||||

|
||||
if (response && response.getResult()) {
|
||||
var result = JSON.parse(response.getResult());
|
||||
if (result.sucesso) {
|
||||
hAPI.setCardValue("numeroSCProtheus", result.C1_NUM || "");
|
||||
hAPI.setCardValue("statusSCProtheus", "SC cadastrada com sucesso");
|
||||
hAPI.setCardValue("solicitanteSCProtheus", result.C1_SOLICIT || "");
|
||||
hAPI.setCardValue("emissaoSCProtheus", result.C1_EMISSAO || "");
|
||||
hAPI.setCardValue("qtdItensSCProtheus", String(result.quantidade_itens || ""));
|
||||
hAPI.setCardValue("dataCadastroSCProtheus", result.data_cadastro || "");
|
||||
hAPI.setCardValue("horaCadastroSCProtheus", result.hora_cadastro || "");
|
||||
} else {
|
||||
hAPI.setCardValue("statusSCProtheus", "Erro: " + result.erro);
|
||||
throw "Erro Protheus: " + result.message;
|
||||
}
|
||||
} else {
|
||||
throw "Sem resposta da API Protheus";
|
||||
}
|
||||
} catch (e) {
|
||||
log.error("❌ Erro ao enviar SC para o Protheus: " + e);
|
||||
throw e;
|
||||
}
|
||||

|
||||

|
||||

|
||||
log.info("🏁 Finalização da servicetask82");
|
||||
}
|
||||
</eventDescription>
|
||||
</WorkflowProcessEvent>
|
||||
<WorkflowProcessEvent>
|
||||
@@ -1641,25 +1649,25 @@ function servicetask82(attempt, message) {
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>1</version>
|
||||
</workflowProcessEventPK>
|
||||
<eventDescription>function servicetask114(attempt, message) {
|
||||
log.info("🚀 ST92 — Verifica se já existe código de cotação no formulário");
|
||||
|
||||
var numSC = hAPI.getCardValue("numeroSCProtheus");
|
||||
var numCot = hAPI.getCardValue("cotacaoSCProtheus");
|
||||
|
||||
log.info("📌 SC: " + numSC + " | Cotação: " + numCot);
|
||||
|
||||
if (!numSC) {
|
||||
throw "❌ Número da SC não informado no formulário.";
|
||||
}
|
||||
|
||||
// se não tiver cotação ainda, força o loop da atividade
|
||||
if (!numCot || numCot === "000000" || numCot === "000001") {
|
||||
throw "⏳ Cotação ainda não disponível para a SC " + numSC;
|
||||
}
|
||||
|
||||
// se já tiver código, só registra log e deixa o processo seguir
|
||||
log.info("✅ Cotação " + numCot + " encontrada no formulário. Processo segue.");
|
||||
<eventDescription>function servicetask114(attempt, message) {
|
||||
log.info("🚀 ST92 — Verifica se já existe código de cotação no formulário");
|
||||

|
||||
var numSC = hAPI.getCardValue("numeroSCProtheus");
|
||||
var numCot = hAPI.getCardValue("cotacaoSCProtheus");
|
||||

|
||||
log.info("📌 SC: " + numSC + " | Cotação: " + numCot);
|
||||

|
||||
if (!numSC) {
|
||||
throw "❌ Número da SC não informado no formulário.";
|
||||
}
|
||||

|
||||
// se não tiver cotação ainda, força o loop da atividade
|
||||
if (!numCot || numCot === "000000" || numCot === "000001") {
|
||||
throw "⏳ Cotação ainda não disponível para a SC " + numSC;
|
||||
}
|
||||

|
||||
// se já tiver código, só registra log e deixa o processo seguir
|
||||
log.info("✅ Cotação " + numCot + " encontrada no formulário. Processo segue.");
|
||||
}</eventDescription>
|
||||
</WorkflowProcessEvent>
|
||||
</list>
|
||||
@@ -1801,7 +1809,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>26</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1812,7 +1820,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>125</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1823,7 +1831,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>126</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1834,7 +1842,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>127</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1845,7 +1853,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>129</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1856,7 +1864,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>142</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1867,7 +1875,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>144</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1878,7 +1886,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>152</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1889,7 +1897,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>152</linkSequence>
|
||||
<bendSequence>2</bendSequence>
|
||||
</processLinkBendPK>
|
||||
@@ -1900,7 +1908,7 @@ function servicetask82(attempt, message) {
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>Solicitação de compras </processId>
|
||||
<version>8</version>
|
||||
<version>86</version>
|
||||
<linkSequence>161</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 62 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Reference in New Issue
Block a user