assertEquals (WorkflowJob.Status.SUSPENDED, job.getStatus());
waitFor(5000, new Predicate() {
public boolean evaluate() throws Exception {
CoordinatorActionBean coordAction2 = jpaService.execute(new CoordActionGetForExternalIdJPAExecutor(jobId));
return coordAction2.getStatus().equals(CoordinatorAction.Status.SUSPENDED);
}
});
coordAction = jpaService.execute(new CoordActionGetForExternalIdJPAExecutor(jobId));
assertEquals (CoordinatorAction.Status.SUSPENDED, coordAction.getStatus());
}