att
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
function afterProcessCreate(processId) {
|
||||
log.info("[checklist][processo] afterProcessCreate desabilitado para numeroSolicitacao.");
|
||||
}
|
||||
@@ -2,6 +2,22 @@ function beforeTaskSave(colleagueId, nextSequenceId, userList) {
|
||||
var FORCE_EMAIL_DESTINATION = "andreycunha@outlook.com";
|
||||
var currentState = parseInt(getValue("WKCurrentState"), 10);
|
||||
var nextState = parseInt(nextSequenceId, 10);
|
||||
var numeroSolicitacao = String(getValue("WKNumProces") || "").trim();
|
||||
var processId = String(getValue("WKDef") || "").trim();
|
||||
|
||||
if (currentState === 5) {
|
||||
if (numeroSolicitacao && numeroSolicitacao !== "0") {
|
||||
hAPI.setCardValue("numeroSolicitacao", numeroSolicitacao);
|
||||
} else {
|
||||
hAPI.setCardValue("numeroSolicitacao", "");
|
||||
}
|
||||
if (processId && processId !== "0") {
|
||||
hAPI.setCardValue("processId", processId);
|
||||
} else {
|
||||
hAPI.setCardValue("processId", "");
|
||||
}
|
||||
}
|
||||
|
||||
log.info("[checklist][atribuicao] beforeTaskSave currentState=" + currentState + ", nextState=" + nextState + ", colleagueId=" + colleagueId);
|
||||
|
||||
// Encaminha automaticamente para a loja selecionada na atividade da loja.
|
||||
|
||||
Reference in New Issue
Block a user