TMACUL

CA SDM  Spell - let me start on coding My First IF condition

Blog Post created by TMACUL Champion on Aug 25, 2015

Create file at: $NX_ROOT\site\mods\majic

 

----------------------------------------------------------------------  zfirstif.mod  ----------------------------------------------------------------------

MODIFY cr {

  POST_VALIDATE zMyFirstIF() 993 FILTER (category {});

};

----------------------------------------------------------------------  zfirstif.mod  ----------------------------------------------------------------------

 

 

 

 

----------------------------------------------------------------------  zfirstif.spl  ----------------------------------------------------------------------

cr::zMyFirstIF(...){

 

 

string zStr_ref_num;

string zStr_priority;

string zStr_impact;

string zStr_external_system_ticket;

 

 

zStr_ref_num = ref_num;

zStr_priority = priority;

zStr_impact = impact;

zStr_external_system_ticket = external_system_ticket;

 

 

  logf(SIGNIFICANT, "Analise do ticket  ref_num %s ", zStr_ref_num);

 

 

  logf(SIGNIFICANT, "Prioridade atribuida ao ticket %s ", zStr_priority);

 

 

  logf(SIGNIFICANT, "Impacto atribuida ao ticket %s ", zStr_impact);

 

  logf(SIGNIFICANT, "external_system_ticket atribuida ao ticket %s ", zStr_external_system_ticket);

 

 

 

  if (!is_null(zStr_external_system_ticket)){

  logf(SIGNIFICANT, "external_system_ticket NAO NULO uida ao ticket %s ", zStr_external_system_ticket);

  priority='1';

  }else{

  logf(SIGNIFICANT, "external_system_ticket TOTALMENTE NULO uida ao ticket %s ", zStr_external_system_ticket);

  priority='2';

  };

 

 

 

};

----------------------------------------------------------------------  zfirstif.spl  ----------------------------------------------------------------------

 

 

Standard value for:

$NX_ROOT = C:\Program Files (x86)\CA\Service Desk Manager

 

 

 

Where can I find Spel functions documentation?

Outcomes