Workflow.sleep(theMilliSeconds);
does not work inside my workflow. What am I missing?
@Override
public void executeActivities(MyDomain object) throws NonRetriableTaskException {
final long theDelay = theActivity.getDelayTime(object);
if (theDelay > 0) {
log.info("about to sleep...");
Workflow.sleep(theDelay);
log.info("slept");
}
theActivity.process(object);
}