Tentei novamente e ainda deu esse erro ai, efetuei o preenchimento certo. Irei deixar em negrito os valores que digitei
2023-07-14 14:24:24,831 INFO [com.datasul.technology.webdesk.workflow.business.WorkflowBO] (default task-1046) Iniciando o processo ‘novo_teste’ ativ destino ‘3’ usuario ‘1275’ empresa ‘1’
2023-07-14 14:24:24,863 INFO [com.datasul.technology.webdesk.customization.ScriptingLog] (default task-1046) TypeError: Cannot call method “split” of null
2023-07-14 14:24:25,185 WARN [com.datasul.technology.webdesk.workflow.engine.WorkflowEngine] (default task-1046) Não existe nenhum anexo definido como principal.
2023-07-14 14:24:25,185 WARN [com.datasul.technology.webdesk.workflow.engine.WorkflowEngine] (default task-1046) Não existe nenhum anexo definido como principal.
2023-07-14 14:24:25,185 INFO [com.datasul.technology.webdesk.workflow.business.WorkflowBO] (default task-1046) # Saving card. Process: novo_teste, Instance: 1093, Sequence: 3, Dados: {emails=kaue.menezes@yahoo.com.br, total=teste, nomeSupervisor=teste, nomeGerente=teste, solicitante=teste}
Vou deixar o código do template, formulario e o Js
Template
<html>
<head>
<title>Fluig</title>
<style>
.title {
font-size: 22px;
}
.description {
font-size: 17px;
}
table {
width: 100%;
padding-bottom: 2px;
}
table tbody {
text-align: left;
padding-left: 15px;
}
.beneficiado,
.aprovadores {
color: #484848;
}
</style>
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<div>
<br>
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding: 25px;">
<h3 class="title">
Pagamento Realizado com sucesso!
</h3>
<p class="description">
O pagamento de ${VALOR_TOTAL} referente as despesas da viagem foi efetuado!
</p>
<div class="beneficiado">
<b>Beneficiado:</b> ${NOME_SOLICITANTE}
</div>
<div class="aprovadores">
<p>
<b>Supervisor Aprovador:</b> ${NOME_SUPERVISOR}
</p>
<p>
<b>Gerente Aprovador:</b> ${NOME_GERENTE}
</p>
</div>
</td>
</tr>
</tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0" style="margin-top: 25px; background-color: #f2f2f2;">
<tbody>
<tr>
<td>
<img src="https://www.innovareti.com.br/img/logo/logo-dark.png" width="200" style="right: 0;">
</td>
<td align="left" style="color: #666666;">
<p style="margin-bottom: 0;margin-block-end: 0;margin-block-start: 0; font-weight: 600;">
Innovare TI</p>
<p style="margin-bottom: 0;margin-block-end: 0;margin-block-start: 0;">Rua Capitão Cassiano
Ricardo de Toledo, 191, sala 1610, Chácara Urbana – Ed. Golden Office, Jundiaí, SP</p>
</td>
</tr>
</tbody>
</table>
</div>
<br />
</body>
</html>
Formulário
<html>
<head>
<link type="text/css" rel="stylesheet" href="/style-guide/css/fluig-style-guide.min.css"/>
<script type="text/javascript" src="/portal/resources/js/jquery/jquery.js"></script>
<script type="text/javascript" src="/portal/resources/js/jquery/jquery-ui.min.js"></script>
<script type="text/javascript" src="/portal/resources/js/mustache/mustache-min.js"></script>
<script type="text/javascript" src="/style-guide/js/fluig-style-guide.min.js" charset="utf-8"></script>
<script type="text/javascript" src="jquery.input.mask.js"></script>
<script type="text/javascript" src="validacao.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="fluig-style-guide">
<form name="form" role="form">
<div class="panel panel-default boder-red" id="referencias">
<div class="panel-heading panel-child">
<h3 class="panel-title">Itens Solicitados / Especificações Técnicas</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-2" id="emails">
<label class="required" for="emails">Pessoa Fisica:</label>
<input type="text" id="emails" name="emails" class="form-control">
</div>
<div class="col-md-2" id="solicitante">
<label class="required" for="solicitante">Local:</label>
<input type="text" id="solicitante" name="solicitante" class="form-control">
</div>
<div class="col-md-2" id="nomeGerente">
<label class="required" for="nomeGerente">nomeGerente:</label>
<input type="text" id="nomeGerente" name="nomeGerente" class="form-control">
</div>
<div class="col-md-2" id="nomeSupervisor">
<label class="required" for="nomeSupervisor">nomeSupervisor:</label>
<input type="text" id="nomeSupervisor" name="nomeSupervisor" class="form-control">
</div>
<div class="col-md-2" id="total">
<label class="required" for="total">total:</label>
<input type="text" id="total" name="total" class="form-control">
</div>
</div>
</div>
</div>
</form>
</div>
</body>
</html>
Validação para o envio
var idFluig = getValue("WKNumProces") + ''
var emails = hAPI.getCardValue('emails');
var nome_solicitante = hAPI.getCardValue('solicitante');
var nome_gerente = hAPI.getCardValue('nomeGerente');
var nome_supervisor = hAPI.getCardValue('nomeSupervisor');
var valor_total = hAPI.getCardValue('total');
try {
var parametros = new java.util.HashMap();
parametros.put("emails", emails);
parametros.put("NOME_SOLICITANTE", nome_solicitante);
parametros.put("NOME_GERENTE", nome_gerente);
parametros.put("NOME_SUPERVISOR", nome_supervisor);
parametros.put("VALOR_TOTAL", valor_total);
parametros.put("subject", "Pagamento Efetuado para a solicitação (" + idFluig + ") / colaborador (" + nome_solicitante + ")");
var destinatarios = new java.util.ArrayList();
var emails = emails.split(';')
for (var i = 0; i < emails.length; i++) {
destinatarios.add(emails[i]);
}
notifier.notify("Fluig", "tpl_confirmacao_pgto", parametros, destinatarios, "text/html");
} catch (TESTEPARAVERCADEOERRO) {
log.info(TESTEPARAVERCADEOERRO);
}