org.qi4j.library.scheduler

## Interface Task

- All Superinterfaces:
    Runnable

      public interface Task
      extends Runnable

  Compose an Entity using this type to be able to Schedule it. A Task is wrapped in a `SchedulerMixin.ScheduleRunner` before being run by an executor. `SchedulerMixin.ScheduleRunner` wrap a `UnitOfWork` around the `Runnable.run()` invocation. Here is a simple example:

        interface MyTask
            extends Task
        {
            Property<String customState();
            Association<AnotherEntity> anotherEntity();
        }

        class MyTaskMixin
            implements Runnable
        {
            @This MyTaskEntity me;
            public void run()
            {
                me.customState().set( me.anotherEntity().get().doSomeStuff( me.customState().get() ) );
            }
        }

  Finaly, MyTask must be assembled into an EntityComposite.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Property<String>` | `name()`
    `Property<List<String>>` | `tags()`

    - ### Methods inherited from interface java.lang.Runnable

      `run`

- - ### Method Detail

    - #### name

          Property<String> name()

    - #### tags

          @UseDefaults
          Property<List<String>> tags()