Archana,
You can use changehelper2 to find related Object. once you have object then you get related process using
WfEngineHelper.service.getAssociatedProcesses API once you have process the use below API's to get the all activities/ workflow process task status
WTChangeOrder2 wtChangeOrder = (WTChangeOrder2) ref.getObject();
Enumeration processes = WfEngineHelper.service.getAssociatedProcesses(wtChangeOrder, null);
while (processes.hasMoreElements())
WfProcess process = (WfProcess) processes.nextElement();
NmOid nmOid = new NmOid(process);
QueryResult status = WorkflowCommands.getRouteStatus(nmOid);
}
Hope it helps!!!
Thanks
Shreyas