Core policies
The Commerce Engine encompasses extensible services that enable you to customize commerce functionality.
Do not extend or inherit from out-of-the-box policies; instead, create your own. You can change the values in a policy by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined and then re-running Bootstrap.
The following policies can be configured through the Core plugin.
Policy |
Description |
Properties / Default Values |
---|---|---|
|
Defines which user roles have access to the different service routes. |
ControllerMethodRegularExpression \ AuthorizedRoles \ List<string> |
|
Defines the code for messages added to entities. |
Pricing \"Pricing" Promotions \ "Promotions" |
|
Defines the naming convention for entity lists. |
Prefix \ "List" Suffix \ "ByDate" Separator \ "-" |
|
Defines the maximum length allowed for text properties. |
MaxLengthAllow \ 0 |
|
Defines the minimum and maximum value for decimal properties. |
MaxAllow \ 0 MinAllow \ 0 |
|
Defines settings for pagination. |
PageSize \ 10 PageSizeOptions \ List<int> { 5, 10, 25, 100 } |
|
Defines the status names that are part of the approval processes. |
Draft \ "Draft" Approved \ "Approved" ReadyForApproval \"ReadyForApproval" |
|
Defines the cache policy for entities. |
Expiration \ 300000 AllowCaching \ true CacheName = string.Empty CacheAsEntity = true HasNegativeCaching \ false EntityFullName = string.Empty Priority \ string.Empty |
|
Defines the result codes for command requests and messages. |
Error \ "Error" Warning \ "Warning" Information \ "Information" ValidationError \ "ValidationError" |
|
Defines which entity component properties can be localized. |
Path \ Properties \ ActionView \ IsItemComponent \ false |
|
Defines which entity properties can be localized. |
Type \ Properties \ ActionView \ ComponentsPolicies \ Enumerable.Empty<LocalizeEntityComponentPolicy> |
|
Defines which artifact should be initialize for an environment. |
InitialArtifactSets \ List<string> |
|
Defines global currency settings. |
DefaultCurrencySet \ string.Empty |
|
Defines the cache policy for localized terms. |
Expiration \ 300000 AllowCaching \ true CacheName \ "LocalizedTerms" |
|
Defines settings for a minion boss. |
ListToWatch \ FullyQualifiedName \ WakeupInterval \ ItemsPerBatch \ 10 SleepBetweenBatches \ 500 Children \ List<MinionPolicy>() |
|
Defines settings for a minion. |
ListToWatch \ FullyQualifiedName \ WakeupInterval \ ItemsPerBatch \ 10 SleepBetweenBatches \ 500 |
|
Defines the behavior of the context node. |
LogHeartBeats \ false |
|
Defines performance settings. |
WriteCounters \ true CountersVersion \ string.Empty |
|
Defines settings for a plugin. |
Plugin \ string.Empty Icon \ string.Empty |
|
Defines the service routes. |
CommerceOps \ "commerceops" Shops \ "api" Authoring \ "api" |
|
Defines settings for transactions. |
TransactionalityEnabled \ true TransactionTimeOut \ 60 (this represents seconds) AsyncFlowOption \ TransactionScopeAsyncFlowOption.Enabled |
|
Defines validation settings for entities. |
TypeFullName \ string.Empty |