Hello,
can anyone explain what is purpose of group_leader in spel. For example now i am working with the following method:
new_attached_event ( object | nil group_leader,
string attach_to_id,
string event_symbol,
duration | nil overide_duration,
date | nil overide_starttime,
string | nil group_name,
int,
int,
string timezone);
as first parameter there is possibility to proved group_leader object or NULL if i provide null method works just fine
without group leader:
duration timeout;
timeout = 100;
send_wait(0, top_object(), "call_attr", "evt", "new_attached_event", NULL, "chg:400896","1hr chg unassigned", timeout ,now(), "SLA",0,1,"UTC");
if (msg_error()) {
printf("Error %s",msg[0]);
}
But if i provide group leader it fails without any error
with group leader
duration timeout;
timeout = 100;
object group_leader;
send_wait(0, top_object(), "get_co_group");
if (msg_error()) {
printf("Error'%s'", msg[0]);
return;
}
else{
group_leader = msg[0];
send_wait(0, top_object(), "call_attr", "evt", "new_attached_event", group_leader, "chg:400896","1hr chg unassigned", timeout ,now(), "SLA",0,1,"UTC");
if (msg_error()) {
printf("Error %s",msg[0]);
}
}
So the first question is what is purpose of the group_leader and why method fails if i provide group_leader.