SMILA 1.0 API documentation

org.eclipse.smila.processing
Interface Pipelet

All Known Implementing Classes:
AddValuesPipelet, ASesameRecordPipelet, ATransformationPipelet, AXmlTransformationPipelet, CommitRecordsPipelet, CopyPipelet, CreateFileUriPipelet, CreateRelationPipelet, CreateResourcePipelet, FileReaderPipelet, FilterPipelet, HtmlToTextPipelet, MimeTypeIdentifyPipelet, MockSearchPipelet, RemoveAttributePipelet, RemoveElementFromXMLPipelet, ReplacePipelet, SampleSecurityConverterPipelet, ScriptPipelet, SesameRecordReaderPipelet, SesameRecordWriterPipelet, SolrIndexPipelet, SolrSearchPipelet, SubAttributeExtractorPipelet, TidyPipelet, XmlSplitterPipelet, XPathExtractorPipelet, XPathFilterPipelet, XslTransformationPipelet

public interface Pipelet

Interface of Pipelets. Their lifecycle and configuration is managed by the workflow engine. They are not shared by multiple workflows, each occurrence of a pipelet in a workflow uses a different pipelet instance. Pipelets must have a public no-argument constructor. The pipelet class name must be registered in a pipelet description file (ending with "*.json", please note the lower cases) in a folder SMILA-INF of the providing bundle. Then they can be detected by the PipeletTracker service.

 SMILA-INF/SimpleTestPipelet.json:
 {
    "class" : "org.eclipse.smila.processing.bpel.pipelets.SimpleTestPipelet"
 }
 

Author:
jschumacher

Method Summary
 void configure(AnyMap configuration)
          set configuration of pipelet.
 java.lang.String[] process(Blackboard blackboard, java.lang.String[] recordIds)
          process given records.
 

Method Detail

configure

void configure(AnyMap configuration)
               throws ProcessingException
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow.

Parameters:
configuration - configuration of pipelet.
Throws:
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)

process

java.lang.String[] process(Blackboard blackboard,
                           java.lang.String[] recordIds)
                           throws ProcessingException
process given records.

Parameters:
blackboard - Blackboard holding and managing the records.
recordIds - Ids of records to process.
Returns:
Ids of records to be passed into the next pipelet. By default this should be the same as the passed in recordIds unless there is a specific (businesslogic) reason not to do so.
Throws:
ProcessingException - error during processing.

SMILA 1.0 API documentation