To use independent implementation definitions for types and typed data in self-defined processors files, define the types at the same level that the file defines processors and other entities (context, formats and services):
<processor id="processName" context="processNameCtxt" implClass="myPackage.MyProcessorClass"> <refFormat name="formatName" refId="myFormat"/> ..... </processor>
<Type id="Money" implClass="com.ibm.dse.base.DataField"> <descriptor id="typeDefault" implClass="com.ibm.dse.base.types.ext.FloatPropertyDescriptor"> ... </descriptor> </type>
<kColl id="Data"> ..... <data id="myBalance" refType="Money"/> ... </kColl>
<fmtDef id="myFormat"> ... </fmtDef>
<Service id="theServiceName" implClass="myPackage.MyServiceClass"/>
<context id="processNameCtxt" type="proc" parent="workstation"> <refKColl refId="Data"/> <refService refId="theServiceName" alias="theService" type="test"/> </context>
Note that within the data definition, you can define typed data by using the data tag and pointing to a type defined either in the generic types file or in the same self-defined file as demonstrated in the above example. The Money type defined in this file cannot be defined in any other file.