Management portal (Task Schedule)

Primary tabs

Hi all, 

I am trying to create multiple tasks all in a single task. 

 

For instance MyApp has three tasks.

One to send a email if a limit is exceeded = MyApp-check-credits

One to purge files = MyApp-purge

One to auto delete files = MyApp-Del 

 

I would love to get all tasks MyApp-check-credits, MyApp-purge, MyApp-Del into a single parent task called MyApp-AllTasks.

 

Is there anyone that could give me guidance of how to complete this it would be much appreciated. 

Replies

What's the use case? I think it's better to keep independent tasks separate.

Anyway:

1. Create your own task class by extending %SYS.Task.Definition.

2. Program your task

  • Specify TaskName parameter to provide readable task name
  • Add class properties if needed - they are task arguments
  • Override OnTask method to program your logic

3. Create a new task, choosing your task class (by TaskName).

I have to agree on this one as well. Especially since you can have tasks kick off once a given task has finished.