TMACUL

CA SDM  Spell - Code example for set SLA looking for impact and CI - Affected Resource

Blog Post created by TMACUL Champion on Oct 21, 2015

It's a simple example to looking for Priority changes and identify some text on Configuration Item - affected Resource

 

mod file

MODIFY cr {

  POST_VALIDATE zPrioridade() 993 FILTER ( impact{} );

};

 

 

Spel File

cr::zPrioridade(...)

{

 

     string zStr_affected_rc;

     int intTextFound;

 

     zStr_affected_rc = format(affected_resource.name);

 

     //IF when - not found = -1

       intTextFound = sindex(zStr_affected_rc, "My Search");

 

     //Not found

     if (intNFE < 0)

     {

          send_wait(0, this, "call_attr", "priority", "set_val", 1, "SURE_SET");

     }

     else

     {

          //found

          send_wait(0, this, "call_attr", "priority", "set_val", 2, "SURE_SET");

     }

 

}

 

 

 

know_more.png

Summary CA Service Management Community 

Service Desk Manager 15 days Implementation 

CABI:: Summary - BOXI for CA SDM 

Summary CA SDM Scoreboard 

 

 

 

CA SDM Spell - Code example for set SLA looking for impact

CA SDM Spel variables for cr object - call_req

 

Was useful, please leave your feedback!

Outcomes