ADMISSÃO DIGITAL SENIOR - Gerenciar Pré-Admissão - Erro Unable to find br.com.senior.hcm.onboarding.JobPositionEntity with id X
Incidente
Quando o RH tenta acessar uma determinada pré-admissão na solução de Admissão Digital Senior, é mostrada a mensagem de erro: Unable to find br.com.senior.hcm.onboarding.JobPositionEntity with id X, conforme a imagem abaixo:
Fig. 01.
Causa
Esse comportamento ocorre quando é feita a exclusão de um cargo (via API Privada Senior - /onboarding/entities/jobPosition/{id}), e esse cargo estava vinculado a uma pré-admissão ativa na solução de Admissão Digital Senior.
Solução
Para corrigir a abertura da pré-admissão, é necessário executar o fluxo demonstrado abaixo:
FLUXO 1 - LOCALIZAR O ID DO CONTRATO DA PRÉ-ADMISSÃO:
- Localize a pré-admissão que teve o cargo deletado;
- Acesse a tela de desenvolvedor do navegador, opção Rede/Network;
- Clique no botão Ações;
- Clique na opção Detalhar;
- Clique na primitiva preAdmissionquery;
- No menu conteúdo, Copie o valor do preAdmissionId;
- Acesse o menu cabeçalhos;
- Na linha Authorization, copie o bearer token do cliente;
- Abra o Postman e crie um GET com o endpoint https://platform.senior.com.br/t/senior.com.br/bridge/1.0/rest/hcm/onboarding/entities/preAdmissionContractBra?filter=preAdmission eq 'a20f4845-1ebd-4e4b-a14b-3ade5365b4d2'
- Em Params, filtre pelo preAdmissionId copiado no item 6;
- Em Authorization, insira o bearer token copiado no item 8;
- Clique no botão Send;
- Copie o id do contrato.
Fig. 02.
Fig. 03.
Fig. 04.
Fig. 05.
Fig. 06.
Após esse procedimento vamos para o segundo fluxo.
FLUXO 2 - ALTERAR O JOBPOSITION:
- Acesse o menu de cadastros > Cargos na Colabbe e selecione o cargo correto do colaborador;
- Acesse a tela de desenvolvedor do navegador, opção Rede/Network;
- Clique no botão Editar;
- Clique na primitiva que contém o id do cargo;
- Em visualização, copie o id do cargo;
- No postman, crie um PATCH com o endpoint https://platform.senior.com.br/t/senior.com.br/bridge/1.0/rest/hcm/onboarding/entities/preAdmissionContractBra/e0a11c30-5fae-4eac-ac7f-86337ee6eb21 , onde o número final será sempre o id do contrato copiado no fluxo anterior;
- Em Authorization, copie novamente o beare token copiando no fluxo anterior;
- Em Body, insira o Json - "jobPosition":"id do cargo"
- Insira o id do cargo copiado no item 5;
- Clique no botão Send.
- Após o envio o cargo será alterado na pré-admissão e a mesma poderá ser aberta na Colabbe
Fig. 07.
Fig. 08.
Fig. 09.
Fig. 10.
O processo deverá ser feito para todas as pré-admissões que apresentarem esse comportamento.