public class DocumentSplitterPipelet extends java.lang.Object implements Pipelet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DOCUMENT_ID
id where the link to the original record is stored in the spilt record.
|
static java.lang.String |
PROP_PARTS_ATTRIBUTE
Configuration property containing the record attribute name where the parts to split are stored.
|
static java.lang.String |
SPLIT_ID_SEPARATOR
separator used to create the record id of the split records.
|
| Constructor and Description |
|---|
DocumentSplitterPipelet() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(AnyMap configuration)
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow.
|
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] recordIds)
process given records.
|
public static final java.lang.String PROP_PARTS_ATTRIBUTE
public static final java.lang.String DOCUMENT_ID
public static final java.lang.String SPLIT_ID_SEPARATOR
public void configure(AnyMap configuration) throws ProcessingException
Pipeletconfigure in interface Pipeletconfiguration - configuration of pipelet.ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)public java.lang.String[] process(Blackboard blackboard, java.lang.String[] recordIds) throws ProcessingException
Pipeletprocess in interface Pipeletblackboard - Blackboard holding and managing the records.recordIds - Ids of records to process.ProcessingException - error during processing.