Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Warning
titlePojoComponent is deprecated

NOTE: PojoComponents will be deprecated as of the SUGAR release, they have been succeeded by Actions, which are very similar in form but more robust. You can think of Actions as POJOv2. Look for more documentation here.

The BI Platform executes action sequences, which consists of various types of bi components.  Until BI Server 2.0, these components were Java classes that implemented org.pentaho.platform.api.engine.IComponent.  With BI Platform 2.0, it's now possible to execute a plain old java object as a component within the platform.

...

There exist special methods which may be defined on a Pojo (No interface needed) in order to better facilitate integration to the platform. They are as follows:

Method

Description

configure(Map<String, String>)

...

requires Set<String> getConfigSettingsPaths()

boolean validate()

...

called during validation stage of component execution

boolean execute()

...

called during execution stage of component execution

void done()

...

called during done stage of component execution

Map<String,Object> getOutputs()

 

void setResources(Map<String, IActionSequenceResource>)

 

void setInputs(Map<String,Object>)

 

void setLogger(Log logger)

 

void setSession(IPentahoSession)

 

void setOutputStream(OutputStream)

 

String getMimeType()