att
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<processDefinitionVersionPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>checklist</processId>
|
||||
<version>19</version>
|
||||
<version>21</version>
|
||||
</processDefinitionVersionPK>
|
||||
<versionDescription></versionDescription>
|
||||
<formId>40213</formId>
|
||||
@@ -380,7 +380,7 @@
|
||||
<companyId>1</companyId>
|
||||
<processId>checklist</processId>
|
||||
<expressionOrder>1</expressionOrder>
|
||||
<version>19</version>
|
||||
<version>21</version>
|
||||
<sequence>7</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>hAPI.getCardValue("saidaAnalise") == "NAO_CONFORME"</condition>
|
||||
@@ -394,7 +394,7 @@
|
||||
<companyId>1</companyId>
|
||||
<processId>checklist</processId>
|
||||
<expressionOrder>2</expressionOrder>
|
||||
<version>19</version>
|
||||
<version>21</version>
|
||||
<sequence>7</sequence>
|
||||
</conditionProcessStatePK>
|
||||
<condition>hAPI.getCardValue("saidaAnalise") == "CONFORME"</condition>
|
||||
@@ -617,7 +617,7 @@ process.instructions=</eventDescription>
|
||||
<processLinkBendPK>
|
||||
<companyId>1</companyId>
|
||||
<processId>checklist</processId>
|
||||
<version>19</version>
|
||||
<version>21</version>
|
||||
<linkSequence>15</linkSequence>
|
||||
<bendSequence>1</bendSequence>
|
||||
</processLinkBendPK>
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
File diff suppressed because it is too large
Load Diff
@@ -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