I have researched documentation (toronto and cuba) and it did not help me understand data rules at all, has anyone had to have email validation. Can you give me an example?
Thanks, Rob
I have researched documentation (toronto and cuba) and it did not help me understand data rules at all, has anyone had to have email validation. Can you give me an example?
Thanks, Rob
I believe you are running Aviarc 3.5.0. If that is the case there is an example of datarules written for this version of the engine. One of those rules is email validator.
The rules are attached to the databroker with the addition of the attribute rules in the definition.xml file which specifies the location of the rules file, so you would end up having something like that:
<databroker factory-class="com.aviarc.framework.databroker.workflowsql.AviarcWorkflowSQLDataBrokerFactoryImpl"
rules="data-rules.xml" >
<operation name="get-all" pre-workflow="workflows/new-customer-get-all">
</operation>
<store-dataset-changes>
<create pre-workflow="workflows/NeW-CuStOmer-Create"/>
<update pre-workflow="workflows/new-customer-update"/>
<delete pre-workflow="workflows/new-customer-delete"/>
</store-dataset-changes>
</databroker>
The file "data-rules.xml" then is meant to reside in the databroker's directory on the same level as definition.xml. And this is where you do specify the actual rules.
Cheers, Vlad