ExecutionService execService = this.processEngine.getExecutionService();
Execution exec = execService.findExecutionById(instanceId);
if(null==exec)
throw new IllegalArgumentException("No such execution with id "+ instanceId);
execService.deleteProcessInstance(instanceId);
}
finally
{
env.close();
}