1. Copy {WSO2SPHome}/modules/samples/artifacts/0013/UniqueLengthBatchWindowSiddhiAppTest.siddhi file to {WSO2_SP_Home}/wso2/worker/deployment/siddhi-files/

2. Start the worker using ./{WSO2SPHome}/bin/worker.sh

3. Run following curls commands to send some login events

   curl -X POST \
      http://localhost:9090/simulation/single \
      -H 'content-type: text/plain' \
      -d '{
      "siddhiAppName": "UniqueLengthBatchWindowSiddhiAppTest",
      "streamName": "SmartHomeData",
      "timestamp": null,
      "data": [
        "10",
        "55.6",
        "55.6",
        "10.5"
      ]
    }'

 curl -X POST \
      http://localhost:9090/simulation/single \
      -H 'content-type: text/plain' \
      -d '{
      "siddhiAppName": "UniqueLengthBatchWindowSiddhiAppTest",
      "streamName": "SmartHomeData",
      "timestamp": null,
      "data": [
        "10",
        "30.0",
        "55.6",
        "10.5"
      ]
    }'

 curl -X POST \
      http://localhost:9090/simulation/single \
      -H 'content-type: text/plain' \
      -d '{
      "siddhiAppName": "UniqueLengthBatchWindowSiddhiAppTest",
      "streamName": "SmartHomeData",
      "timestamp": null,
      "data": [
        "10",
        "40.0",
        "55.6",
        "10.5"
      ]
    }'

 curl -X POST \
      http://localhost:9090/simulation/single \
      -H 'content-type: text/plain' \
      -d '{
      "siddhiAppName": "UniqueLengthBatchWindowSiddhiAppTest",
      "streamName": "SmartHomeData",
      "timestamp": null,
      "data": [
        "10",
        "53.0",
        "55.6",
        "10.5"
      ]
    }'

 curl -X POST \
      http://localhost:9090/simulation/single \
      -H 'content-type: text/plain' \
      -d '{
      "siddhiAppName": "UniqueLengthBatchWindowSiddhiAppTest",
      "streamName": "SmartHomeData",
      "timestamp": null,
      "data": [
        "10",
        "90.0",
        "55.6",
        "10.5"
      ]
    }'

curl -X POST \
      http://localhost:9090/simulation/single \
      -H 'content-type: text/plain' \
      -d '{
      "siddhiAppName": "UniqueLengthBatchWindowSiddhiAppTest",
      "streamName": "SmartHomeData",
      "timestamp": null,
      "data": [
        "10",
        "75.0",
        "55.6",
        "10.5"
      ]
    }'

4. See the output in the WSO2SP terminal
