Páginas filhas
  • DI Sindicato - LaborUnion

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

A integração de Sindicato sindicato consiste na movimentação do cadastro no sentido ERP para PIMS Multicultivos, ou seja, será realizado no ERP e enviado para o PIMS Multicultivos através do PIMSConnector.

Informações da Mensagem

  • Identificador da Mensagem: LaborUnion
  • Versão: 1.001
  • Módulo PIMS Multicultivos: Tabelas > Mão de Obra > Sindicatos
  • Tipo de Envio: Assíncrona / Síncrona
  • Tipo de Evento: Upsert / Delete

Campos Obrigatórios

  • Código do sindicato;
  • Descrição do sindicato.

Exemplos de Mensagens

Mensagem XML

Bloco de código
languagexml
titleLaborUnion_Envio
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TOTVSMessage>
	<MessageInformation version="1.001">
		<BranchId>D MG 01</BranchId>
		<CompanyId>T1</CompanyId>
		<DeliveryType>Sync</DeliveryType>
		<GeneratedOn>2018-05-10T10:07:57</GeneratedOn>
		<Product name="ERP" version="11"/>
		<SourceApplication>QHDLMI_TESTE_EAI</SourceApplication>
		<StandardVersion>1.000</StandardVersion>
		<Transaction>LABORUNION</Transaction>
		<Type>BusinessMessage</Type>
		<UUID>19c4f33c-4e08-7d27-g2u9-78l13i177d35</UUID>
	</MessageInformation>
	<BusinessMessage>
		<BusinessEvent>
			<Entity>LaborUnion</Entity>
			<Event>upsert</Event>
			<Identification>
				<key name="Code">01||98</key>
			</Identification>
		</BusinessEvent>
		<BusinessContent>
			<CompanyId>T1</CompanyId>
			<BranchId>D MG 01</BranchId>
			<CompanyInternalId>01| </CompanyInternalId>
			<InternalId>01| |98</InternalId>
			<Code>101020</Code>
			<UnionName>Sindicato dos Trabalhadores</UnionName>
			<Address>
				<Address/>
				<Number/>
				<Complement/>
				<City>
					<CityCode/>
					<CityInternalId/>
					<CityDescription/>
				</City>
				<District/>
				<State>
					<StateCode>  </StateCode>
					<StateInternalId/>
					<StateDescription/>
				</State>
				<Country>
					<CountryCode/>
					<CountryInternalId/>
					<CountryDescription/>
				</Country>
				<ZIPCode/>
				<Region/>
				<POBox/>
			</Address>
		</BusinessContent>
	</BusinessMessage>
</TOTVSMessage>
Bloco de código
languagexml
titleLaborUnion_Retorno
linenumberstrue
collapsetrue
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TOTVSMessage>
	<MessageInformation version="1.001">
		<BranchId>D MG 01</BranchId>
		<CompanyId>T1</CompanyId>
		<DeliveryType>Sync</DeliveryType>
		<GeneratedOn>2018-05-24T11:42:58</GeneratedOn>
		<Product name="PIMS" version="12.1.20"/>
		<SourceApplication>PIMSCONNECTOR</SourceApplication>
		<StandardVersion>1.000</StandardVersion>
		<Transaction>LABORUNION</Transaction>
		<Type>Response</Type>
		<UUID>6e7b063f-0d4e-4817-8b68-f709173b9280</UUID>
	</MessageInformation>
	<ResponseMessage>
		<ProcessingInformation>
			<ProcessedOn>2018-05-24T11:42:58</ProcessedOn>
			<Status>OK</Status>
		</ProcessingInformation>
		<ReceivedMessage>
			<MessageContent/>
			<SentBy>ERP</SentBy>
			<UUID>19c4f33c-4e08-7d27-g2u9-78l13i177d35</UUID>
		</ReceivedMessage>
		<ReturnContent>
			<ListOfInternalId>
				<InternalId>
					<Destination>||419997722493834536</Destination>
					<Name>LABORUNION</Name>
					<Origin>01| |98</Origin>
				</InternalId>
			</ListOfInternalId>
		</ReturnContent>
	</ResponseMessage>
</TOTVSMessage>

Mensagem JSON

Bloco de código
languagejs
titleLaborUnion_Envio
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "1.001",
			"BranchId" : "D MG 01",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-05-10T10:07:57",
			"Product" : {
				"@name" : "ERP",
				"@version" : "11"
			},
			"SourceApplication" : "QHDLMI_TESTE_EAI",
			"StandardVersion" : "1.000",
			"Transaction" : "LABORUNION",
			"Type" : "BusinessMessage",
			"UUID" : "19c4f33c-4e08-7d27-g2u9-78l13i177d35"
		},
		"BusinessMessage" : {
			"BusinessEvent" : {
				"Entity" : "LaborUnion",
				"Event" : "upsert",
				"Identification" : {
					"key" : {
						"@name" : "Code",
						"$" : "01||98"
					}
				}
			},
			"BusinessContent" : {
				"CompanyId" : "T1",
				"BranchId" : "D MG 01",
				"CompanyInternalId" : "01| ",
				"InternalId" : "01| |98",
				"Code" : "101020",
				"UnionName" : "Sindicato dos Trabalhadores",
				"Address" : {
					"Address" : null,
					"Number" : null,
					"Complement" : null,
					"City" : {
						"CityCode" : null,
						"CityInternalId" : null,
						"CityDescription" : null
					},
					"District" : null,
					"State" : {
						"StateCode" : "  ",
						"StateInternalId" : null,
						"StateDescription" : null
					},
					"Country" : {
						"CountryCode" : null,
						"CountryInternalId" : null,
						"CountryDescription" : null
					},
					"ZIPCode" : null,
					"Region" : null,
					"POBox" : null
				}
			}
		}
	}
}
Bloco de código
languagejs
titleLaborUnion_Retorno
linenumberstrue
collapsetrue
{
	"TOTVSMessage" : {
		"MessageInformation" : {
			"@version" : "1.001",
			"BranchId" : "D MG 01",
			"CompanyId" : "T1",
			"DeliveryType" : "Sync",
			"GeneratedOn" : "2018-05-24T11:42:58",
			"Product" : {
				"@name" : "PIMS",
				"@version" : "12.1.20"
			},
			"SourceApplication" : "PIMSCONNECTOR",
			"StandardVersion" : "1.000",
			"Transaction" : "LABORUNION",
			"Type" : "Response",
			"UUID" : "6e7b063f-0d4e-4817-8b68-f709173b9280"
		},
		"ResponseMessage" : {
			"ProcessingInformation" : {
				"ProcessedOn" : "2018-05-24T11:42:58",
				"Status" : "OK"
			},
			"ReceivedMessage" : {
				"MessageContent" : null,
				"SentBy" : "ERP",
				"UUID" : "19c4f33c-4e08-7d27-g2u9-78l13i177d35"
			},
			"ReturnContent" : {
				"ListOfInternalId" : {
					"InternalId" : {
						"Destination" : "||419997722493834536",
						"Name" : "LABORUNION",
						"Origin" : "01| |98"
					}
				}
			}
		}
	}
}

Descrição Detalhada das Tags

SEGMENTOTAGSTIPOTAMANHODESCRITIVO DA TAG


BusinessEvent

EntityString50Nome da entidade que gerou o evento
EventString10Qual foi o evento associado à mensagem (pode ser upsert – inclusão/alteração ou delete – eliminação)
IdentificationString-Campos da chave primária da transação. Atributo "Name" define o nome do campo, enquanto que o conteúdo do elemento representa o valor do campo



BusinessContent

CompanyIdString10Código da empresa
BranchIdString20Código da filial
CodeString2Código do sindicato
UnionNameString40Nome do sindicato

Limitações e Restrições

  • Esta integração está disponível a partir da versão 12.1.19.1 do PIMS Multicultivos e PIMSConnector;
  • Caso já exista o cadastro de Sindicato sindicato em ambos os sistemas, será necessário habilitar o processo de integração através do ajuste do cadastro do PIMS Multicultivos, informando o código do ERP no campo "Código", para depois realizar a integração. Caso isto não seja feito, o processo de integração não funcionará corretamente, gerando inconsistências nas informações trafegadas entre os aplicativos;
  • A integração de Sindicato para o PIMS Multicultivos é realizada em modo compartilhado ou exclusivo entre as Unidades Administrativasunidades administrativas.