Hi CDTJ,
zSetCommentTrigger.maj:
------------------------------------
OBJECT cr {
ATTRIBUTES Call_Req {
zComment STRING{
ON_POST_VAL z_set_logcomment() 62175 ;
};
};
};
------------------------------------
zSetComment.spl:
------------------------------------------
cr.zComment::z_set_logcomment(...) {
uuid who;
int msg_i;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
if (msg_error()) {
logf(ERROR, "Unable to get current user:");
for (msg_i=0;msg_i<msg_length();msg_i++) {
logf(ERROR, "\tmsg[%d] : %s", msg_i, msg[msg_i]);
}
} else {
who = msg[0];
}
send_wait(0, top_object(), "call_attr", "api", "generic_activity_log", who, persistent_id, zComment, "LOG", 0, 0);
if (msg_error()) {
logf(ERROR, "Unable to log comment for [%s]:", persistent_id);
for (msg_i=0;msg_i<msg_length();msg_i++) {
logf(ERROR, "\tmsg[%d] : %s", msg_i, msg[msg_i]);
}
}
send_wait(0, this, "call_attr", "zComment", "set_val", "", "SURE_SET");
if (msg_error()) {
logf(ERROR, "Unable to wipe comment for [%s]:", persistent_id);
for (msg_i=0;msg_i<msg_length();msg_i++) {
logf(ERROR, "\tmsg[%d] : %s", msg_i, msg[msg_i]);
}
}
}
----------------------------------
But it gives errors as below:
05/17 09:48:09.01 SW-SDMQA01 spelsrvr 3932 ERROR api.spl 5393 Object cr:1164598 checked out by someone else
05/17 09:48:09.01 SW-SDMQA01 spelsrvr 3932 ERROR zSetComment.spl 15 Unable to log comment for [cr:1164598]:
05/17 09:48:09.01 SW-SDMQA01 spelsrvr 3932 ERROR zSetComment.spl 17 msg[0] : Object cr:1164598 checked out by someone else
05/17 09:48:09.02 SW-SDMQA01 domsrvr 6672 ERROR attr.c 5627 No response to trigger cr.zComment::z_set_logcomment (1 time) after 30 seconds; waiting another 60 seconds
05/17 09:48:09.02 SW-SDMQA01 domsrvr 6672 ERROR attr.c 5627 No response to trigger cr.zComment::z_set_logcomment (3 time) after 120 seconds; waiting another 240 seconds
05/17 09:48:09.02 SW-SDMQA01 domsrvr 6672 ERROR attr.c 5627 No response to trigger cr.zComment::z_set_logcomment (3 time) after 120 seconds; waiting another 240 seconds
Please help on this
Thanks