what will be you requirement?
what define with group to be assigned?
Do you want to pass the group assignee to the task to the group of the request?
Let us know maybe we already have one available for you we can share.
concerning the syntax of the fragement.
First of all please note that custom action macro are not supported by CA so you are on own there.
That say nothing much complex there.
you write your code like you will do with spel (except you don't have to define the objject as you are already on)
the you need to escape any special character like "e: with \ and use \\0012 as return carrer for visibility as you have mostly see when extraction one.
Below a example of code that will assign the group from the task to group of the request and the final file content ready for import with pdm_load so you can compare
Using a tool like notepad++ will quickly help for all the replacement.
object cr_dob;
send_wait(0, this, "call_attr", "cr", "get_dob");
if (msg_error())
{
logf(ERROR, format("unable to retrieve cr associated to wf"));
return;
}
cr_dob= msg[0];
if(!is_null(cr_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;
}
cr_dob.group=group;
send_wait(0, gl, "checkin");
}
TABLE Spell_Macro
del description fragment id last_mod_by last_mod_dt lock_object msg_html
msg_tmpl_info ob_type persid sym tenant type usr_integer1 usr_integer2 usr_integer3
usr_string2 usr_string3 usr_string4
{ "0" ,"Sets the CR group to the task group",
"object "cr_dob;\\0012send_wait(0, this, \"call_attr\", \"cr\", \"get_dob\");\\0012if (msg_error())\\0012{\\0012logf(ERROR, format(\"unable to retrieve cr associated to wf\"));\\0012return;\\0012}\\0012cr_dob= msg[0];\\0012if(!is_null(cr_dob))\\0012{\\0012send_wait(0, top_object(), \"get_co_group\");\\0012if (msg_error())\\0012{\\0012logf(ERROR, \"get_group_leader () failed: %s\", msg[0]);\\0012return;\\0012}\\0012object gl;\\0012gl = msg[0];\\0012send_wait(0, gl, \"checkout\", chg_dob);\\0012if (msg_error())\\0012{\\0012logf(ERROR, \"Error checking out dob, error: %s\", msg[0]);\\0012return;\\0012}\\0012cr_dob.group=group;\\0012send_wait(0, gl, \"checkin\");\\0012}",
"" ,"" ,"" ,"1" ,"" ,"" ,"cr_wf" ,"" ,"Set CR group",
"" ,"ACT" ,"" ,"" ,"" ,"" ,"" ,"" }
Hope this help
/J
P.S.: if this is the logic that you would like to implement, just copy the entire table spell_macro above to a text file and import using pdm_load -iv -f mytextfile