Customizing workflows allows organizations to tailor business logic to their specific needs. This
page explains how to modify user task options in the UI, override service task behavior, and exclude
variables from workflow histories.
Prerequisites
Before customizing workflows, ensure you have:
Familiarity with BPMN modeling.
Experience with Spring development.
How to modify the user task options in the UI
User tasks in the default workflows are defined using YAML configuration. These definitions control
the options shown in the UI.
To customize them:
Open the application.yml file.
Navigate to the activeviam.apps.workflow-service.workflows section.
Locate the actions property under the relevant workflow.
Add, remove, or modify the actions as needed.
Changes to this configuration will automatically update the UI.
How to modify what happens when a service task executes
Each workflow includes service tasks that trigger Spring beans. These beans implement logic for
automated steps.
To override a service task:
Identify the bean name used in the workflow documentation.
Define a new Spring bean with the same name.
Ensure it is exposed to the Spring context.
Example: Override a service task
To replace the logic after a six-eyes approval with a simple log message:
Variable changes in the workflow histories, visible in the UI for limits and incidents, can be
ignored by including the variable in the
activeviam:apps:workflow-service.settings.ignored-history-variables
property value.
What services are available for interacting with the workflows?
The following java services are available for interacting with the workflows.
1. ILimitsWorkflowService
Contains Atoti Limits specific methods to start limit and incident workflows.
Executes user tasks and fetches limit and incident histories.
Invokes the workflow service code.
2. IWorkflowService
Provides generic methods for interacting with the underlying workflow-service.