Fork me on GitHub

Configuration

Strict mode

It is possible to define a strict mode for a mapping type. The strict mode is about rendering the code UNIQUE. In other words, it will not be possible to create a mapping that has an existing code for a mapping type.

By default, the simple mapping is in strict mode whereas the mapping with workflow actions is not.

To configure the strict mode for mapping types, one must modify the following file : /WEB-INF/conf/plugins/workflow-mappings_context.xml :

<bean id="workflow-mappings.simpleMapping" class="fr.paris.lutece.plugins.workflow.modules.mappings.business.SimpleCodeMapping" scope="prototype" 
	p:mappingType-ref="workflow-mappings.simpleMappingType" 
	p:strict="true" />
<bean id="workflow-mappings.actionMapping" class="fr.paris.lutece.plugins.workflow.modules.mappings.business.ActionCodeMapping" scope="prototype" 
	p:mappingType-ref="workflow-mappings.actionMappingType"
	p:codeMappingService-ref="workflow-mappings.codeMappingService" 
	p:strict="false" />