Studio Developer Manual / Version 2107
Table Of ContentsDefining the Workflow Category
You have to define the process category of your workflow, either localization or publication. You have two ways to do so:
Let the name of your workflow definition either end with
*Translation
or*Publication
.
or
Add the name of your new workflow definition to the
translationProcessNames
orpublicationProcessNames
beans for the corresponding workflow category. Example 7.90, “Add a new workflow with the name StudioThreeStepPublication to publicationProcessNames ” shows this for a new 3-step publication workflow.@Bean @Customize("publicationProcessNames") List<String> addThreeStepPublicationWorkflowName() { return List.of("StudioThreeStepPublication"); }
Example 7.90. Add a new workflow with the name StudioThreeStepPublication to publicationProcessNames
Enabling Notifications for Tasks
You can switch on Studio notifications for tasks of your new workflow when they appear in the Control Room workflow inbox. You do this via a Spring Java configuration in the application context of the Spring Boot app that acts as the User Changes application. This can be the Studio Server app itself (for example, in the in-memory setup), but typically it is the dedicated User Changes app.
Customize the beans
notificationsForTranslationWorkflowList
ornotificationsForPublicationWorkflowList
for a translation or publication workflow, respectively. Example 7.91, “Enable notifications for new StudioThreeStepPublication workflow ” shows this for a new 3-step publication workflow.@Bean @Customize("notificationsForPublicationWorkflowList") List<String> addThreeStepPublicationWorkflowNotifications() { return List.of("StudioThreeStepPublication"); }
Example 7.91. Enable notifications for new StudioThreeStepPublication workflow