El nexo entre tecnología y negocios
 
[ AHT00171 ] Assign a scheduler to a task by API
Summary
It is possible modifying the scheduler selected to a task through Apia's API.

It is applied to
  • Apia 2.4.0.22


Procedure

To modify the scheduler assigned to a task by API, the following method should be used:

ApiaAbstractClass.setSchedulerTask(schedulerName)

This way, the user can determine which scheduler he wants to use in the task.

Specifications:

  1. The process should have a scheduler assigned in task. It is not possible to assign a scheduler to a task by API if no scheduler has been previously assigned in processes design.
  2. The business class that runs 'setSchedulerTask' method must be run in ONWORK event of the task. 


Related elements
[ AHT00166 ] Set scheduler to process
[ ANF00211 ] Methods that allow scheduling tasks from API
Related from
[ AHT00172 ] Release a task scheduled date by a Java API
[ AFC00578 ] Obtain next available date in a scheduler
Suggested items
[ AFC00572 ] Obtain previous tasks
[ ANF01554 ] Tasks' name in JavaScript
[ AHT00127 ] Cancel waiting processes
[ ANF00233 ] Automatic task activation
[ AFC00389 ] Identification of tasks with wizzard
[ AFC00600 ] Forms' onSubmit events
[ AFC00396 ] Ad hoc end of process
[ AFC00489 ] Creation of processes per API
[ ANF00223 ] Groups' reassignment
[ AFC00194 ] Log of Scheduler