This documentation is for WSO2 Stream Processor 4.4.0 (the latest version of WSO2 SP. View documentation for the Streaming Integrator, the successor of WSO2 SP.

All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.



A source could also be defined externally, and referred to from several siddhi applications as described below,Multiple sources can be defined in the <SP HOME>/conf/<PROFILE>/deployment.yaml file. A <PROFILE> could refer to dashboard, editor, manager or worker. The following is a sample configuration of a source.

Code Block

        name: 'source1'
        type: '<store.type>'
          <property1>: <value1>
          <property2>: <value2>
You can refer to a source configured in the  <SP HOME>/conf/<PROFILE>/deployment.yaml file from a Siddhi application as shown in the example below.

Code Block
@Source(ref='source1', basic.auth.enabled='false',
        @map(type='json', @attributes( name='$.name', amount='$.quantity')))
define stream SweetProductionStream (name string, amount double);

For detailed instructions to configure a source, see Siddhi Guide - Source.

Source types

WSO2 SP supports following source types out of the box, to receive events via corresponding transports. Click on the required source type for instructions to configure a source to receive events via them.