Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
Code Block | ||||
---|---|---|---|---|
| ||||
@Inject public MyClass(TasksManager tasksManager) { this.tasksManager = tasksManager; } public void createTask() { Task task = new Task(); ... tasksManager.addTask(task); } |
Note | ||
---|---|---|
Be aware that by calling
the task will not be created in the workspace. |
Start by giving the task a name. The name is unique for the type of task you are creating and acts as a reference to the task definition in the registry.
...
To allow bulk actions for other users, add their role names from the list of default roles as the properties and values of the roles
subnode.
...