CA Service Management

CA SDM::.SPEL::. delete_animator() 

Mar 03, 2017 12:50 PM

Overview

Delete (deactivate) the specified animator, uniquely identified by persid, method and name.  A "*" can be passed for one or more parameters to delete a set of animators.  For example, all animators against an object about to be deleted, or all SLA animators against an object.

Usage

send_wait (0, (object) "@|animator_nxd|Animator", "delete_animator", string persid, string method, string name);

Results

Event animator deleted.

Examples

    int i;
    object animator_addr;
    animator_addr = (object) "@|animator_nxd|Animator";
    
    send_wait(0, animator_addr, "delete_animator", "cnote:400051", "*", "*");
    if (msg_error()) {
        for (i=0; i<msg_length(); i++) {
            printf("'%s'\n", msg[i]);
        }
        return;
        // Returns
        // msg[0]: 'AHD03007:Nenhuma correspondência de animadores para exclusão.'
        // msg[1]: 'cnote:400051'
        // msg[2]: '*'
        // msg[3]: '*'
    } else {
        for (i=0; i<msg_length(); i++) {
            printf("'%s'\n", msg[i]);
        }
        // Returns
        // msg[0]: 'cnote:400051'
        // msg[1]: '*'
        // msg[2]: '*'
    }
    
    send_wait(0, animator_addr, "delete_animator", "cnote:400051", "deactivate_cnote", "fire_cnote_animator");
    if (msg_error()) {
        for (i=0; i<msg_length(); i++) {
            printf("'%s'\n", msg[i]);
        }
        return;
        // Returns
        // msg[0]: 'AHD03007:Nenhuma correspondência de animadores para exclusão.'
        // msg[1]: 'cnote:400051'
        // msg[2]: 'deactivate_cnote'
        // msg[3]: 'fire_cnote_animator'
    } else {
        for (i=0; i<msg_length(); i++) {
            printf("'%s'\n", msg[i]);
        }
        // Returns
        // msg[0]: 'cnote:400051'
        // msg[1]: 'deactivate_cnote'
        // msg[2]: 'fire_cnote_animator'
    }
}

Where can I find Spel functions documentation? 

Statistics
0 Favorited
2 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.