132133134135136137138139140141142
new Task(waitFor) { @Override protected void doExecute() throws Throwable { GenericWorkflowClient client = getGenericClientToUse(); client.requestCancelWorkflowExecution(workflowExecution); } }; } private void checkWorkflowExecution() {