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