Create new ABAP class to be used in workflow task
Within SE80 or SE24 create a new class 'ZCL_TEST', then add the interface 'if_workflow'. This will in-turn add 2 more interfaces BI_OBJECT & BI_PERSISTANT, it will also add a number of default methods which need to be activated. You also need to check the key field checkbox for all the attributes that make up a unique record identifier. This then forms part of the class unique key:
CATID: 'CL'
TYPEID: 'CL_TEST'
INSTID: Made up from key field attributes