CA Service Management

Expand all | Collapse all

How it works add_time_animator?

Jump to Best Answer
  • 1.  How it works add_time_animator?

    Posted 09-23-2017 12:31 PM

    Hi guys,

    Does anyone know how to use the Spel method 'add_time_animator'? I have already tried the following syntaxes and still could not get it to work:

     

    add_time_animator("fire_cnote_animator", (date) "09/24/2017 12:29:27", (duration) 0, "cnote:400051", "deactivate_cnote", "DOB", "");

       
    send_wait(0, (object) "@|animator_nxd|Animator", "add_time_animator", "fire_cnote_animator", (date) "09/23/2017 13:00:00", (duration) 0, "cnote:400051", "deactivate_cnote", "DOB", "");

     

    PS.:

    The method below to delete animator works!

    send_wait(0, (object) "@|animator_nxd|Animator", "delete_animator", "cnote:400051", "*", "*");

     

    Thanks.

    cdtj

    Chris_Hackett

    Gutis

    giedrius



  • 2.  Re: How it works add_time_animator?

    Posted 09-27-2017 04:57 PM

    Hi folks,

     

    Any suggestions for Daniel on this one?

     

    Thx

    _R



  • 3.  Re: How it works add_time_animator?
    Best Answer

    Posted 09-28-2017 11:12 AM

    Hi Daniel.

    I'm not aware that this inbuild function is in use by any spell code provided by CA. And I never used it ,nor did I get it to run

    Anyway: I assume this function is intended to create an ANI record, which of course can be done by yourself as well:

     

    just create a new object of factory ANI and fill in the required information:

    object ani_gl,ani;

    send_wait(0,top_object(),"get_co_group");
    ani_gl=msg[0];

    send_wait(0, top_object(), "call_attr", "ANI", "get_new_dob", NULL, NULL, ani_gl);

    ani = msg[0];

    ani.name = "Your name here"
    ani.target = persistent_id;        // your context object persid
    ani.method = "execute";            // the object method name , which gets called in context of your context object when the ANI fires
    ani.timer = (date)(target_date );  // your firetime
    ani.org_timer = (date) now();
    ani.lock = "";
    ani.user_string = "a user string";

    send_wait(0, ani_gl, "checkin");

     

    hope that helps

    Kind regards

    ............Michael



  • 4.  Re: How it works add_time_animator?

    Posted 09-28-2017 01:22 PM

    This method I already knew Michael. but thanks anyway. I am documenting in a structured way all the known SPEL functions and unfortunately the add_time_animator function we still do not know how to use it.