Skip to content

Commit

Permalink
fix example doWork impl in javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
efonsell committed Feb 18, 2021
1 parent 23a8ffe commit 928cb3e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,10 @@ protected CronWorkflow(String type, WorkflowSettings settings) {
* <pre>
* public NextAction doWork(StateExecution execution) {
* // do the work here
* if (waitForChildWorkflowsToFinish) {
* if (rescheduleImmediately) {
* return NextAction.moveToState(schedule, "Work done");
* } else {
* return NextAction.moveToStateAfter(waitForWorkToFinish, DateTime.now().plusHours(hoursToWait),
* "Waiting for work to finish");
* }
* return NextAction.moveToStateAfter(waitForWorkToFinish, DateTime.now().plusHours(hoursToWait), "Waiting for work to finish");
* }
* </pre>
*
Expand Down

0 comments on commit 928cb3e

Please sign in to comment.