Skip to Content
0
Former Member
Nov 02, 2009 at 10:50 AM

Issue with Instantiation of a Class in Workflow

232 Views

I created a subclass of CL_HRASR00_WF_PROCESS_OBJECT to include some of my custom methods to be used in the workflow. Since the subclass methods cant be referred using the super class name(as we do in BO) in the standard task , i used a custom method to create the instance of the subclass using the following code and then using the subclass instance i tried to call my subclass method, but the issue what i am facing is the subclass instance is not getting created using the following code(may be i am missing something) instead the superclass instance is returned by the method containing the below code an in the next step(in workflow) when it tries to call the subclass method I am getting an error that : "Method not found":'CL.CL_HRASR00_WF_PROCESS_OBJECT.GET_INIT_EMAIL'. Please advice what is that I am missing.

TRY.

CREATE OBJECT processinst

EXPORTING

guid = guid.

CATCH cx_bo_error .

ENDTRY.

where processinst is of type ZCL_HRASR00_WF_PROCESS_OBJECT.