I can't recall out of box there is such a action macro for chg wf so I think it is a custom one to run your spel code...
If that is the case, you may want to troubleshoot your spel script.
In fact, out of box, there is a similar macro to set the cab approval=yes. The script is "
if(chg.cab_approval !=1)
{
object chg_dob;
send_wait(0, this, "call_attr", "chg", "get_dob");
if (msg_error())
{
logf(ERROR, format("unable to retrieve change order associated to wf"));
return;
}
chg_dob= msg[0];
if(!is_null(chg_dob))
{
send_wait(0, top_object(), "get_co_group");
if (msg_error())
{
logf(ERROR, "get_group_leader () failed: %s", msg[0]);
return;
}
object gl;
gl = msg[0];
send_wait(0, gl, "checkout", chg_dob);
if (msg_error())
{
logf(ERROR, "Error checking out dob, error: %s", msg[0]);
return;
}
chg_dob.cab_approval=1;
send_wait(0, gl, "checkin");
}
}
"
and I think you can make your action macro similar to this