Overview
All conversion pipelets inherited from com.brox.anyfinder.processing.ConversionPipelet share the way the conversion source(s) and target(s) is configured.
Configuration explained
Source and target metadata type (required)
SourceType and TargetType properties define the metadata type of source and target respectively. Possible values are ATTACHMENT and ATTRIBUTE.
Example
<proc:Property name="SourceType"> <proc:Value>ATTRIBUTE</proc:Value> </proc:Property> <proc:Property name="TargetType"> <proc:Value>ATTACHMENT</proc:Value> </proc:Property>
Source (required) and target (optional) paths or attachment names
The source and target (in case of TARGET_PARAMETER_DEFINED storage policy) is be defined either by an attribute path(s) (org.eclipse.smila.blackboard.path.Path) or an attachment name(s) under one or more Source and Target properties values
Example
<proc:Property name="Source"> <proc:Value>SourceAttr1</proc:Value> <proc:Value>SourceAttr2</proc:Value> </proc:Property> <proc:Property name="Target"> <proc:Value>TargetAttachment1</proc:Value> <proc:Value>TargetAttachment2</proc:Value> </proc:Property>
Target storage policy (required)
TargetStoragePolicy property defines the way the target path(s) or attachment name(s) will be calculated. Values available:
- OVERWRITE - source path(s) or attachment(s) will be overwritten with the output value(s)
- TARGET_PARAMETER_DEFINED - target(s) is defined by Target property, see above
- PREFIX - target path(s) last step or attachment name(s) will have the prefix defined by the OutputPrefix property
- TEMP - target path(s) will be preceded by TEMP/ step
- SUB_ATTRIBUTE - target path(s) will be preceded by step of attribute defined by name in TargetSubtree property value
If target policy if not defined and no targets are defined explicitly, the OVERWRITE policy will be used. If target policy if not defined but targets are defined with Target property, the TARGET_PARAMETER_DEFINED policy will be used.
OVEWRITE and PREFIX policies can't be used if source and target metadata types differ.
TEMP and SUB_ATTRIBUTE policies can't be used with Attachment target metadata type.
Target path or attachment name prefix (optional)
OutputPrefix property is to be used with PREFIX target storage policy. It defines the target path's last step prefix in case of ATTRIBUTE source/target metadata type. In case of ATTACHMENT source/target metadata type it defines the attachment name prefix.
Example
<proc:Property name="SourceType"> <proc:Value>ATTRIBUTE</proc:Value> </proc:Property> <proc:Property name="TargetType"> <proc:Value>ATTRIBUTE</proc:Value> </proc:Property> <proc:Property name="Source"> <proc:Value>RootSourceAttr/SomeAttr</proc:Value> </proc:Property> <proc:Property name="TargetStoragePolicy"> <proc:Value>PREFIX</proc:Value> </proc:Property> <proc:Property name="OutputPrefix"> <proc:Value>my_Prefix_</proc:Value> </proc:Property>
In this case the output path will be RootSourceAttr/my_Prefix_SomeAttr.
Target subtree path (optional)
TargetSubtree property defines the name of root attribute/mobject under which the target attributes will be stored.
Example
<proc:Property name="SourceType"> <proc:Value>ATTRIBUTE</proc:Value> </proc:Property> <proc:Property name="TargetType"> <proc:Value>ATTRIBUTE</proc:Value> </proc:Property> <proc:Property name="Source"> <proc:Value>SomeAttr</proc:Value> </proc:Property> <proc:Property name="TargetStoragePolicy"> <proc:Value>SUB_ATTRIBUTE</proc:Value> </proc:Property> <proc:Property name="TargetSubtree"> <proc:Value>OutputAttr</proc:Value> </proc:Property>
In this case the output path will be OutputAttr/SomeAttr.
Clean temporary metadata (optional)
Optional boolean property CleanTempMetadata defines whether the temporary metadata under TEMP/ subpath will be cleaned after the processing is done. It's disabled (false) by default.
Example
<proc:Property name="CleanTempMetadata" type="java.lang.Boolean"> <proc:Value>true</proc:Value> </proc:Property>