Hello, i did some digging and found that when you use this WS method on cr workflow it gives an error:
Spell interp failed at api.spl:1898:api::delete_workflow: get_attr on iss failed: AHD03066:Unknown name iss
This error means that spel method api:delete_workflow that is defined in api.maj file is failing. So since we know hows to run spel codes that are defined in api.maj i decided to run it from spel script:
void wftest()
{
uuid who;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
who=msg[0];
send_wait(0, top_object(), "call_attr", "api", "delete_workflow", "cr_wf:400251", "cr:402266");
if (!msg_error()) {
printf("Error %s",msg[0]);
}
In log i got the same error:
Spell interp failed at api.spl:1898:api::delete_workflow: get_attr on iss failed: AHD03066:Unknown name iss
The conclusion is that when CA introduced classical workflow on requests they forgot to update spel api methods that are related to workflows and are loca in cmpcd.spl. Since those methods are used by WS, cals are failing. This is obvious bug that needs to be adressed by support.