Hi,
I try this but changed the code a little and it's working.You can see the below.Thanks.
string new_val;
string param;
param=persistent_id;
int msg_i;
send_wait(0, top_object(), "call_attr", "cr", "val_by_key", "persistent_id", param, (int) 1, "status");
string old_val;
old_val = msg[1];
logf(SIGNIFICANT, "%s > stutus changed: %s > %s", persistent_id, old_val, new_val);
logf(ERROR, "status: '%s' old_val: '%s' new_val: '%s' ref_num: '%s'",status, old_val,new_val,ref_num);
send_wait(0, this, "call_attr", "zVFTR_OldStatus", "set_val", old_val, "SURE_SET");
if (msg_error()) {
logf(ERROR, "%s > Failed to update status:", persistent_id);
for (msg_i=0;msg_i<msg_length();msg_i++)
logf(ERROR, "\tmsg[%d]: %s", msg_i, msg[msg_i]);
}
Regards,
Burcu