Suspending and resuming an Automatic Activity
You may want to render an Automatic Activity dormant (suspend it) until a certain moment in time is reached. The Workflow API supports this functionality.
The following methods can be used in your External Activity class, or in the Script Editor dialog of your Automatic Activity:
Suspend-
Suspends the Activity (which must be in its Started state). This method takes the following parameters:
reason-
A
stringcontaining the reason you are suspending the Activity. resumeAt-
A
DateTimetimestamp (optional) containing the moment at which the Activity should be resumed. resumeBookmark-
A
string(required only ifresumeAtis set) which enables you to distinguish between a normal and a resumed Activity.
Resume-
Resume the Activity (which must be in the Suspended state). Use this method to manually resume an Activity if you did not specify a resume timestamp when you suspended it. This method takes no parameters.