Which IIQ version are you inquiring about?
Version 8.3
Share all details related to your problem, including any error messages you may have received.
Can I get a complete custom workflow including the below lines of code here ?
Identity workgroup = context.getObjectByName(Identity.class, "name of workgroup");
Attributes attributes = workgroup.getAttributes();//workgroup attribute details , name, disabplayname etc.
List capabilities = workgroup.getCapabilities();//list of capabilities assigned to workgroup
Identity owner = workgroup.getOwner();//workgroup owner