Perhaps it might help to provide more details so you can get a better understanding of what I’m trying to do.
I tried to provide just a simple example but think the background is necessary
Specific issue:
What is the recommended way to model scheduling (and rescheduling) a task based on a data object being updated?
Specific Details:
For backwards compatibility reasons, we need to support the “scheduling of a task or subprocess” to run.
Some event message occurs and this needs to trigger the scheduling of a task or subprocess.
We need to create the timer so that when it fires, it will start this scheduled task.
Some requirements
1) You cannot schedule muliple tasks at one time. Only one scheduled at a time. If the task is already scheduled (ie Job already exists), then we only support rescheduling (ie changing the scheduled time). WE support this by deleting the current Job before the new timer Job is created
2) Support rescheduling
- The timer job may be long running. While the timer job is still running, we still need to be able to receive additional message events that will start a new timer with a new value. (as mentioned earlier, we already take care of deleting the existing one to ensure only one scheduled task).
- The task that is scheduled should to be non-interrupting, the rest of the workflow should continue as is…..
As mentioned in the original post, this all works fine if I model in the Manual Task but am hoping to avoid that.
Hoping this might provide a little more detail on requirements. THanks again for any help on this