Shark shark = Shark.getInstance();
WAPI wapi = shark.getWAPIConnection();
WMSessionHandle sessionHandle = sc.getSessionHandle();
wapi.abortProcessInstance(sessionHandle, processId);
aborted = true;
// audit trail for aborted activity instances
Collection<WorkflowActivity> activityList = getActivityList(processId, 0, 1000, null, false); //getProcessActivityInstanceList(processId);
for (WorkflowActivity activity : activityList) {