ConnectTeamsite conn = new ConnectTeamsite();// class for connecting teamsite
CSClient client = conn.getCSClient(); //function returning CSClient
CSExternalTask task = (CSExternalTask)conn.getTask(1620335);
new SomeClass().execute(client,task,null); // class with execute method
This is high level description of the code I tried. I am getting CSClient object correctly. issue is at 3rd line line where I am casting. I get the following error.
java.lang.ClassCastException: com.interwoven.cssdk.workflow.impl.CSUserTaskImpl cannot be cast to com.interwoven.cssdk.workflow.CSExternalTask
Please help me in clearing this issue or tell me some other way to get CSExternalTask type object from CSClient.
Teamsite version: 7.4.1
OS : Windows server 2008 R2