public Object doInWorkflowSession(RuntimeContext ctx) { IPersistenceService persistenceService = ctx.PersistenceService; return(persistenceService.FindTaskInstanceById(taskInstanceId)); }