Page tree
Skip to end of metadata
Go to start of metadata
The Publication Task Config module allows for mapping of users groups to different paths and workspaces. You still use the OOTB 4-eye workflow but change the behavior of how the publication task functions. This change allows for routing to different groups of people depending on the location of the content. The module also makes it possible to disable the approval step completely but leave the option for scheduling open. 

Installation

Maven is the easiest way to install the module. Add the following dependency to your bundle:

<dependency>
  <groupId>info.magnolia.workflow</groupId>
  <artifactId>magnolia-publication-task-config</artifactId>
  <version>${publicationTaskConfigVersion}</version>
</dependency>

Versions

6.1Magnolia 6.1
5.6.1Magnolia 5.7
5.6.1Magnolia 5.6

Usage

The module introduces a groupMapping configuration on the publication task located inside the workflow-jbpm module. Whenever a publication request is initiated all mappings will be checked to determine if the request should be routed to a specific group or groups. If none of the mappings match then it falls back to the default groups. By using the special auto-approve group you can turn off the approval step completely.

Group Mapping

Group mapping is made possible by the class MappablePublicationTaskDefinition.

Here we see an example of the travel site being mapped to only those people in the group travel-demo-publishers. The default group is publishers and will be the group used for any other site (or content).

Automatic Approval

In some cases the approval step may not be needed, but the ability to schedule content is still desired. By setting the group to auto-approve you can signal to the human task handler class to skip the step completely. From there the content will either be immediately activated or it will moved into a scheduled state waiting for an execution date. Using this approach users can still manage scheduled workflows from the pulse.

Here we see an example of the sportstation site being set for auto approval.

Warnings

  • This module is at INCUBATOR level.

Changelog