// sleep for one minute
wait(WaitMode.ALL, 60000, getEngine().createUUID());
}
}
An instance of this workflow would run vor ever.
If it's a persistent workflow, you have to keep two things in mind:
- make sure that the workflow is lauched only once, because it will survive process restarts.
- if the workflow changes in the future, you may have to delete its "stale" instance in the database, before launching the new version
/Michael