In the AWI, it is possible to change the
active flag of a task within an active schedule by clicking the
Modify button in the schedule monitor, and selecting the task one wishes to modify, changing the status of the flag by clicking the
Active check box, and then saving the modification.
What Java API class should we use to do the same thing? We want to change the
active flag of a task within a running schedule. In other words, we want to set a Schedule Monitor task
active or
inactive.
Here is what we have found:
.
ScheduleTask
is for working with tasks inside schedule objects.
This class has a setter method, setActive()
, that sets the active flag of the JSCH object to false (inactive) or true (active).
ScheduleMonitor.Task
is for working tasks inside active schedule tasks.
This class does not have any setter methods.
- We also found
ResetScheduleTask
, but we're not sure what it does.
Thanks in advance for any tips!
P.S. As always, this topic highlights the
inconsistent and ambiguous terminology used in this application. What does
task mean? What does
active mean? When I want to be unambiguous, what word should I use to indicate one meaning but not the other? It must be so confusing to new users.