04-29-2010 05:40 PM
<property name="testdoc:test_number">
<title>Test Number</title>
<type>d:text</type>
<mandatory>true</mandatory>
<constraints>
<constraint type="MINMAX">
<parameter name="minValue">
<value>0</value>
</parameter>
<parameter name="maxValue">
<value>9</value>
</parameter>
</constraint>
</constraints>
</property>
public class UpdateProperties extends DeclarativeWebScript {
…
@Override
protected Map<String, Object> executeImpl(WebScriptRequest request, Status status) {
…
nodeService.setProperty(NODEREF_OF_THE_OBJECT, QNAME_OF_TEST_NUMBER, "9001");
…
return model
}
…
}
Invalid property value:
Node: workspace://SpacesStore/a04691ca-d154-4944-908d-ebf9693475e1
Type: {testspace}testdoc
Property: {testdoc}test_number
Constraint: 03270012 Numeric value '9001' is not in range [0; 9]
at org.alfresco.repo.node.integrity.IntegrityChecker.checkIntegrity(IntegrityChecker.java:667)
at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:689)
at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(TransactionSynchronizationUtils.java:48)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:835)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:645)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:632)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:314)
at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:467)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:349)
…
04-29-2010 06:06 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.