Task Scheduling

A custom task can optionally override the following method to specify whether the task can be scheduled.
public  boolean  canBeScheduled()

In the class BaseIPDTask, the default implementation is set to true, which indicates the task can be scheduled. If the custom task overrides the method with a return value of false, the task cannot be scheduled in the WebSphere® Scheduler through the Services Framework user interface.

Example

Register a custom task through the Services Framework user interface and go to the task configuration section. Create a new task configuration for the registered custom task. To create a new schedule configuration, select one of the configured tasks to schedule from the Scheduler menu. If the custom task returns a false value for the method canBeScheduled( ), the dropdown box is not displayed for the configured task. If the method returns a value of true, the configured task can be selected in the dropdown box.

Refer to the Javadoc information for additional information about methods and signatures.