Jump to content

Search the Community

Showing results for tags 'spel code'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CA Service Desk Manager
    • General Discussions
    • Customizations / Modifications
    • Bugs / Errors / Patches
    • Knowledge Tools / Keyword Search
    • Support Automation
    • CMDB
    • Install / Migrate / Configure
    • Product Integration
    • Reporting
    • Workflow
  • Nimsoft Service Desk
    • General
  • General
    • Wiki Article Discussions
    • ITIL & Best Practices
    • Speak Out
    • Employment Opportunities

Calendars

  • Community Calendar

Categories

  • Getting Started
  • Installation
  • Configuration
  • Customization
  • Integration
    • CA Applications
    • Non-CA Applications
    • Custom Integrations
  • Reporting
  • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. Hello, i am a new SPEL user and need your help. Idea is to update child outage_type (only if it's empty) from parent and only if parent is "Closed/Resolved" From what i have right now is code to update(rewrite) child outage type on every change in pratent: cr::z_copy_outage_type_from_parent(...) { string method; method = "cr::z_copy_outage_type_from_parent()"; logf(SIGNIFICANT, "Start spel %s for ticket %s", method, this.ref_num); //save information about outage type from parent send_wait(0, this, "call_attr", "outage_type", "set_val", this.parent.outage_type, "SURE_SET" ); logf(SIGNIFICANT, "Konec spel %s for ticket %s", method, this.ref_num); } -------------------------------------------------------------------------------------------------- cr::z_copy_outage_type_to_children(...) { string method, wc; int c_count, i; object c_list, group_leader, c_dob; method = "cr::z_copy_outage_type_from_parent()"; logf(SIGNIFICANT, "Start spel %s for ticket %s", method, this.ref_num); wc = format("parent = '%s'", this.persistent_id, this.outage_type); send_wait(0, top_object(), "call_attr", "cr", "sync_fetch", "MLIST_STATIC", wc, -1,0); c_count = msg[1]; c_list = msg[0]; if (c_count > 0) { for(i = 0; i < c_count; i++) { send_wait(0, top_object(), "get_co_group"); group_leader = msg[0]; //load child ticket send_wait(0, c_list, "dob_by_index", "DEFAULT", i, i); c_dob = msg[0]; //save outage_type info send_wait(0, group_leader, "checkout", c_dob); send_wait(0, c_dob, "call_attr", "outage_type", "set_val", this.outage_type, "SURE_SET" ); send_wait(0, group_leader, "checkin"); } } logf(SIGNIFICANT, "End of spel %s for ticket %s", method, this.ref_num); } I tried several costumizations but only thing that i got was errors Can you help me please? Thank you and regards
  2. Hello Collaborators, I am trying to add an aditional workflow task in an already existing change order which one it has some workflow tasks using add_workflow method in spel code. This is my first time working with this method and I did this: 1) First, I wrote this line: send_wait(0, top_object(), "call_attr", "api", "add_workflow", who, "400401", "", "APP", 0, "group_task", 1, "wf_template", 400208, "description", "Operaciones Argentina"); I got an error message saying: 12/20 11:16:28.43 G100603SV278 spelsrvr 5124 ERROR api.spl 1507 err getting a change order or issue dob: NOT FOUND 2) Taking care the first attempt, I modified the parameter about change order persistent id: send_wait(0, top_object(), "call_attr", "api", "add_workflow", who, "chg:400401", "", "APP", 0, "group_task", 1, "wf_template", 400208, "description", "Operaciones Argentina"); But, in this case, the change order never finishs to save and the logs show: 12/20 11:25:06.52 G100603SV278 domsrvr 8508 ERROR attr.c 6196 No response to trigger chg::ztoma_control (3 time) after 120 seconds; waiting another 240 seconds Can you tell me what is wrong with the persistent id in the method? Thank you!!
×
×
  • Create New...