Versions Compared

Key

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

This page describes how to create artifacts for the Analytics Project. It contains the following sections:

Table of Contents
maxLevel3

Info

Anaytics plugin currently working only for the CEP (Complex Event Processor) artifacts which are eventstream, eventpublisher, eventreceiver and executionplan. In the future, we plan to extend the functionality of Analytics Plugin for DAS (Data Analytics Server) artifacts.

Creating an Analytics Project

...

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Stream in the Analytics category. 
  2. Select Import Stream and click Next
  3. Type a unique name for the Stream. 
  4. Specify the stream file by typing its full path name or clicking Browse and navigating to the file. 
  5. In the Save Stream In field, specify an existing Analytics project in your workspace where you want to save the stream, or click Create new Project to create a new Analytics project and save the stream there. 
  6. Click Finish. The stream is created in the stream folder under the Analytics project you specified, and the stream is open in the editor.

 

Creating a Publisher

Creating a new Publisher

...

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Publisher in the Analytics category.
  2. Select Create New Publisher and click Next.
  3. Type a unique name for the Publisher.
  4. Do one of the following:
      • To save the publisher in an existing Analytics project in your workspace, click Browse and select that project.
      • To save the publisher in a new Analytics project, click Create new Project and create the new project.
  5. Click Finish. The publisher is created in the publisher folder under the Analytics project you specified, and the publisher is open in the editor.

Importing a Publisher 

Follow these steps to import an existing publisher from an XML file into an Analytics project. Alternatively, you can create a new publisher.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Publisher in the Analytics category.
  2. Select Import Publisher and click Next.
  3. Type a unique name for the Publisher.
  4. Specify the publisher file by typing its full path name or clicking Browse and navigating to the file.
  5. In the Save Publisher In field, specify an existing Analytics project in your workspace where you want to save the publisher, or click Create new Project to create a new Analytics project and save the publisher there.
  6. Click Finish. The publisher is created in the publisher folder under the Analytics project you specified, and the publisher is open in the editor.

Creating a Receiver

Creating a new Receiver

Follow these steps to create a new receiver. Alternatively, you can import an existing receiver.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Receiver in the Analytics category.
  2. Select Create New Receiver and click Next.
  3. Type a unique name for the Receiver.
  4. Do one of the following:
    • To save the receiver in an existing Analytics project in your workspace, click Browse and select that project.
    • To save the receiver in a new Analytics project, click Create new Project and create the new project.
  5. Click Finish. The receiver is created in the receiver folder under the Analytics project you specified, and the receiver is open in the editor.


Importing a Receiver

Follow these steps to import an existing receiver from an XML file into an Analytics project. Alternatively, you can create a new receiver.

  1. Open the Developer Studio Dashboard (click Developer Studio > Open Dashboard) and click Receiver in the Analytics category.
  2. Select Import Receiver and click Next.
  3. Type a unique name for the Receiver.
  4. Specify the receiver file by typing its full path name or clicking Browse and navigating to the file.
  5. In the Save Receiver In field, specify an existing Analytics project in your workspace where you want to save the receiver, or click Create new Project to create a new Analytics project and save the receiver there.
  6. Click Finish. The receiver is created in the receiver folder under the Analytics project you specified, and the receiver is open in the editor.

Deploying the Analytics Project

Once you create the Analytics Project with atifacts such as execution-plan,stream,publisher and receiver, you can create a Composite Application Project to group them and create a Composite Application Archive. Before creating the CAR file, make sure to change the server role of the created bundle to ComplexEventProcessor. To deploy it to WSO2 Complex Event Processor (CEP), you need to change it to the correct server role.

 

 



 

 

Excerpt
hiddentrue

Creating a Complex Event Processor (CEP) Project in Developer Studio.