Clarity Service Management

Expand all | Collapse all

No object for member variable persistent_id

  • 1.  No object for member variable persistent_id

    Posted 05-24-2016 01:46 PM

    Hi I have this spel that is showing the following message

     

    Spell interp failed at z_cico_log.spl:9:chg::z_cico_log: No object for member variable persistent_id

     

    here is the spell

    chg::z_cico_log(...)

    {

    uuid who;

    logf(ERROR,"1");

    send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");

    logf(ERROR,"2");

    who=msg[0];

    logf(ERROR,"3");

    send_wait(0, top_object(), "call_attr", "api", "generic_activity_log", who, persistent_id, "test description", "LOG", 0, 0);

    logf(ERROR,"4");

    }

     

    Any ideas why?



  • 2.  Re: No object for member variable persistent_id

    Posted 05-24-2016 03:30 PM

    Nowhere in your script is the variable persistent_id defined.



  • 3.  Re: No object for member variable persistent_id

    Posted 05-24-2016 03:58 PM

    How should I do that?



  • 4.  Re: No object for member variable persistent_id

    Posted 05-25-2016 03:55 PM

    What does your trigger that calls this SPEL script look like?



  • 5.  Re: No object for member variable persistent_id

    Posted 07-28-2016 04:04 PM

    Hi Lindsay

     

    Here is the trigger

     

    MODIFY chg POST_CI z_cico_log() 62175 FILTER(z_checkin_comments{});



  • 6.  Re: No object for member variable persistent_id

    Posted 07-28-2016 04:43 PM

    1. Change your trigger to this:

    MODIFY chg POST_CI z_cico_log(persistent_id) 62175 FILTER(z_checkin_comments{});

     

    2. Add this before your uuid who; line:

    string chg_persid;

    chg_persid = argv[3];

     

    3. In your "generate_activity_log" line replace persistent_id with chg_persid



  • 7.  Re: No object for member variable persistent_id

    Posted 06-02-2016 03:36 AM

    Hello Santana,

     

    Checking if you've made progress on this. See Lindsay's last question if you haven't.

     

    Thanks, Kyle_R.