Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/HowTo/Howto integrate a component in SMILA"

m
Line 49: Line 49:
 
SMILA's Connectivity Framework allows easy integration of additional datasources by providing implementations of [[SMILA/Glossary#A|Agents]] and/or [[SMILA/Glossary#C|Crawlers]].
 
SMILA's Connectivity Framework allows easy integration of additional datasources by providing implementations of [[SMILA/Glossary#A|Agents]] and/or [[SMILA/Glossary#C|Crawlers]].
  
* How to implement an Agent
+
* [[SMILA/Development_Guidelines/How to implement a Agent|How to implement a Agent]]
 
* [[SMILA/Development_Guidelines/How to implement a Crawler|How to implement a Crawler]]
 
* [[SMILA/Development_Guidelines/How to implement a Crawler|How to implement a Crawler]]
  

Revision as of 07:30, 26 September 2008

This page summarizes the different types and complexity levels of integration of components in SMILA.


Integration of Services in BPEL

There are several options on how to integrate new functionality in SMILA BPEL workflows (called Pipelines).

Simple: webservices

The simplest way of integrating additional functionality in SMILA is to call a webservice. This is a standard BPEL workflow engine functionality independent of SMILA. There are some limitations concerning the input und result data to/from webservices: Records are NOT accessible from a BPEL workflow! It is only possible to use the values contained in the BPEL workflow object. By default the workflow object contains only the ID of a Record. Though it is possible to include Attributes and Annotations of Records in the workflow object, Attachments are not supported. The content of the workflow object can be configured by filters in the configuration file org.eclipse.smila.blackboard/RecordFilters.xml. You need to include Attributes/Attachments used for input as well as for output.

Examples:

  • A good example for this use case is the integration of [Language Weaver]. The Language Weaver Translation Server provides a webservice interface that allows a text to be translated into another language. This service could be easily used within SMILA.

Here are more detailed technical descriptions:


Default: local SMILA Pipelet or ProcessingService

The default technique to integrate functionality or software in SMILA is to write a Pipelet or ProcessingService that runs in the same OSGi runtime as the BPEL workflow engine. Pipelets are easier to implement than ProcessingServices, as they require only standard Java knowledge. For more information about Pipelets and ProcessingServices see Pipelets and ProcessingServices. Both Pipelets and ProcessingServices have full access to Records in SMILA via the BlackboardService. So it's easily possible to read, modify and store Records. In general Pipelets and ProcessingServices follow the same (sometimes optional) logical steps (of course this depends highly on the business logic to be executed). These steps are:

  • read the configuration (optional)
  • read input data from Blackboard (optional)
  • execute the business logic
  • write result data to Blackboard (optional)

In the part of your Pipelet/Processing service that implements the business logic you are totally free to use any desired technology. Some of the posibilities include


Examples:

Here are more detailed technical descriptions:

Advanced: remote SMILA ProcessingService

tbd.


Integration of Agents and Crawlers

SMILA's Connectivity Framework allows easy integration of additional datasources by providing implementations of Agents and/or Crawlers.


Providing alternative implementations for SMILA Core-Components

SMILA's component based architecture even allows you to provide your own implementations of SMILA core components. More info comming soon ...

Examples:

  • a typical example is an alternative implementation of the DeltaIndexingManager that does not store it's state in memory but in the filesystem or in a database