Workflow Configuration

SCORE Datasource Workflow is a separate workflow with two stages: Draft and Approved. It is used only for datasources. 

If particular page is not under any workflow SCORE Datasource Workflow is not being used. If page is added to any workflow some or all datasources for this page depending on configuration will be added to SCORE Datasource workflow when the datasource is saved.

SCORE Workflow support is available by default but must be turned on to be used by tenant websites within the instance.

The Workflow process is instigated by an event handler that is automatically added to the configuration by SCORE with the configuration below. 

Sample Sitecore Instance Configuration
<event name="item:saved">
	<handler patch:after="handler[last()]" type="Score.Custom.Handlers.WorkflowHandler, Score.Custom" method="AddWorkflow">
        <database>master</database>
    </handler>
</event>


Types of Datasource items to be added to workflow is defined based on an instance wide setting in your configuration file.

BrainJocks SCORE defines 3 types of datasource locations that can be selected to go through workflow - Page, Site Shared and Multi-site Shared Content datasource items.  By default none of the types are added. If you would like to exclude any of these please define the setting below in your project and specify the desired values.

Note: Page, Site and MultiSite are references to type of content defined for SCORE. Please check SCORE documentation.

Sample Site Configuration
<setting name="Score.Datasource.Workflow.Supported.Types" value="Page|Site|MultiSite"/>		

Score comes with a setting for admin as under. Update this setting to allow other users who are allowed to create workflow-bypassing datasources.

<setting name="Score.Users.SkipWorkflow" value="sitecore\Admin"/>	


If content item and datasource item doesn't have workflow set, then the default workflow will be assigned to both of them

Sample Site Configuration
<setting name="Score.Datasource.Workflow.Default" value="{GUID}" />