Core policies

Current version: 10.2

The Core plugin contributes configuration policies that define behavior for the functionality provided by the plugin.

Note

Do not extend or inherit from out-of-the-box policies; instead, create your own.

You can change the values of default policies 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

ControllerMethodRolesPolicy

Defines which user roles have access to the different service routes.

ControllerMethodRegularExpression\

AuthorizedRoles \ List<string>

KnownMessageCodePolicy

Defines the code for messages added to entities.

Pricing \"Pricing"

Promotions \ "Promotions"

ListNamePolicy

Defines the naming convention for entity lists.

Prefix \ "List"

Suffix \ "ByDate"

Separator \ "-"

MaxLengthPolicy

Defines the maximum length allowed for text properties.

MaxLengthAllow \ 0

MinMaxValuePolicy

Defines the minimum and maximum value for decimal properties.

MaxAllow \ 0

MinAllow \ 0

PaginationPolicy

Defines settings for pagination.

PageSize \ 10

PageSizeOptions \ List<int> { 5, 10, 25, 100 }

ApprovalStatusPolicy

Defines the status names that are part of the approval processes.

Draft \ "Draft"

Approved \ "Approved"

ReadyForApproval \"ReadyForApproval"

EntityCachingPolicy

Note

The EntityMemoryCachingPolicy is deprecated as of Sitecore XC release 9.2.

Defines the cache policy for entities.

EntityFullName = string.Empty

AllowCaching \ false

Priority \ string.Empty

Expiration \ 300000

AbsoluteExpirationRelativeToNow \ null

SlidingExpiration \ null

HasNegativeCaching \ false

CacheName = string.Empty

EntityIdPrefix = true

KnownResultCodes

Defines the result codes for command requests and messages.

Error \ "Error"

Warning \ "Warning"

Information \ "Information"

ValidationError \ "ValidationError"

LocalizeEntityComponentPolicy

Defines which entity component properties can be localized. 

Path \

Properties \

ActionView \

IsItemComponent \ false

LocalizeEntityPolicy

Defines which entity properties can be localized.

Type \

Properties \

ActionView \

ComponentsPolicies \ Enumerable.Empty<LocalizeEntityComponentPolicy>

EnvironmentInitializationPolicy

Defines which artifact should be initialize for an environment.

InitialArtifactSets \ List<string>

GlobalCurrencyPolicy

Defines global currency settings.

DefaultCurrencySet \ string.Empty

LocalizedTermsCachePolicy

Defines the cache policy for localized terms.

Expiration \ 300000

AllowCaching \ true

CacheName \ "LocalizedTerms"

MinionBossPolicy

Defines settings for a minion boss.

FullyQualifiedName \

WakeupInterval \

ItemsPerBatch \ 10

SleepBetweenBatches \ 500

Children \ List<MinionPolicy>()

MinionPolicy

Defines settings for a minion.

ListsToWatch \

FullyQualifiedName \

WakeupInterval \

ItemsPerBatch \ 10

SleepBetweenBatches \ 500

NodeHeartBeatPolicy

Defines the behavior of the context node.

LogHeartBeats \ false

PerformancePolicy

Defines performance settings.

WriteCounters \ true

CountersVersion \ string.Empty

PluginPolicy

Defines settings for a plugin.

Plugin \ string.Empty

Icon \ string.Empty

KnownServiceRoutesPolicy

Defines the service routes.

CommerceOps \ "commerceops"

Shops \ "api"

Authoring \ "api"

TransactionsPolicy

Defines settings for transactions.

TransactionalityEnabled \ true

TransactionTimeOut \ 60 (this represents seconds)

AsyncFlowOption \ TransactionScopeAsyncFlowOption.Enabled

ValidationPolicy

Defines validation settings for entities.

TypeFullName \ string.Empty

RedirectOnCreationPolicy

Determines whether a Business Tools user is redirected to the a new entity instance upon creation.

Presence of this policy in the authoring environment configuration .json file implements the action to redirect the business user to the newly created entity instance.

IgnorePublishedPolicy

Determines whether a request for an entity in a given environment applies without regards to the entity's publishing workflow state, that is, whether or not the entity is published to the Content Delivery role.

Presence of this policy in an environment configuration allows the environment to see all entities - unpublished or published. The IgnorePublishedPolicy policy is present in the default CommerceAuthoring and CommerceMinions environment .json files. The policy also affects entity caching and indexing processes.

When the Business Tools send a request to the Commerce Engine for an entity, the publishing status of the entity is ignored, and the request targets the latest version of the entity. Commerce engine minions process entities whether published or unpublished.

This policy is not used in the Shops environments. Requests to the Commerce Engine from storefronts always target published entities.

Note

Do not extend or inherit from out-of-the-box policies; instead, create your own.

You can change the values of default policies by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined, and then re-running Bootstrap.

Do you have some feedback for us?

If you have suggestions for improving this article,