The limit and incident statuses are determined by their workflows. When using a custom workflow, it’s likely that the status values will differ from those provided in the default limit workflows. We need to map these statuses to the actions that can be performed on the limit or incident so that Atoti Limits is able to function using any custom statuses. This mapping can be configured using two different methods:Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
Use configuration properties
The following properties can be defined in yourapplication.yml file to map custom workflow statuses to limit actions.
These properties are prefixed with limits.workflow.limit-workflow-action-statuses:
| Property | Description | Default Values |
|---|---|---|
inactive | Indicates the limit is no longer active, making it ineligible for consideration during the validation of new limits. Limit structures with only “inactive” limits will have their KPIs deleted. | DELETED, EXPIRED |
evaluable | Indicates the limit is eligible for evaluation. | APPROVED |
kpi-visible | Indicates the limit is still relevant to be viewed in KPIs, even if it’s only for historical analysis and is no longer active. | APPROVED, EXPIRED |
pending | Indicates the limit was previously approved and is still active, but has been modified or requested for deletion and the modification/deletion has not yet taken effect. | PENDING, EDIT, PENDING_DELETION |
Use ILimitsStatusManager
The ILimitStatusManager API provides methods to check if a limit has a status that is eligible for certain actions.
The default implementation of this interface is DefaultLimitsStatusManager, which checks the limit status against the
configuration properties mentioned above. If you don’t wish to use the configuration properties or need more complex
logic to determine the mapping, you can create a custom implementation of this interface and
expose it as a Spring bean to override the default
implementation.
ILimitsStatusManager
ILimitsStatusManager