Interface ResumingRuntimeManager.AutomaticResumer
-
- Enclosing interface:
- ResumingRuntimeManager
public static interface ResumingRuntimeManager.AutomaticResumer
A service that is able to automatically resume activities after a designated time period receives a request for this operation via this interface. The request has to be forwarded to a time trigger that triggers a resume after the designated time. The service has to ensure that the trigger is persisted and that the corresponding activity does need a resume. If the service is not available when the timeout has elapsed, the resume may be deferred until possible.- Author:
- Ulrich Kreher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
resumeActivity(EBPInstanceReference ebpInstanceReference, long delay)
Notifies the service that can automatically resume an activity that the designated activity should be resumed after the designated time period (in milliseconds).
-
-
-
Method Detail
-
resumeActivity
void resumeActivity(EBPInstanceReference ebpInstanceReference, long delay)
Notifies the service that can automatically resume an activity that the designated activity should be resumed after the designated time period (in milliseconds). If the service is not available at that time it needs to ensure that it resumes the activity at the next possible time.
This is called synchronously right before terminating an activity. Implementors have to go through this method very fast. Otherwise this delays the activity termination. Usually implementors should just create a runnable and offer it to an executor service.- Parameters:
ebpInstanceReference
- The reference to the activity which allows to identify the corresponding worklist item.delay
- The time period after which the designated activity is to be resumed in milliseconds.
-
-