I am working with wso2cep3.0.0, My input source and out put source is JMs.I written my Input event adapter and output event adapter like this
Input adapter
is
<?xml version="1.0" encoding="UTF-8"?>
<inputEventAdaptor name="jmsProxy" statistics="disable" trace="enable"
type="jms" xmlns="http://wso2.org/carbon/eventadaptormanager">
<property name="java.naming.provider.url">tcp://localhost:61616</property>
<property name="transport.jms.SubscriptionDurable">false</property>
<property name="transport.jms.UserName">admin</property>
<property name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property>
<property name="transport.jms.Password">admin</property>
<property name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</property>
<property name="transport.jms.DestinationType">queue</property>
</inputEventAdaptor>
and my
Output event adapter
is
<?xml version="1.0" encoding="UTF-8"?>
<outputEventAdaptor name="OUTJmsProxy" statistics="disable" trace="disable"
type="jms" xmlns="http://wso2.org/carbon/eventadaptormanager">
<property name="java.naming.security.principal">admin</property>
<property name="java.naming.provider.url">tcp://localhost:61616</property>
<property name="java.naming.security.credentials">admin</property>
<property name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property>
<property name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</property>
<property name="transport.jms.DestinationType">queue</property>
</outputEventAdaptor>
and my input message in jmsproxy jms queue is like this
<soapenv:Body xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<uuid>cc253480-95b3-418e-b282-7e87f885c99e</uuid>
<Remarks>t4</Remarks>
<ReadingsLiteTaildtos>
<ReadingsLiteTaildto>
<FinalValue>70</FinalValue>
<InputText>Chiller Feeder Current R - Ph</InputText>
<InputValue>0.0</InputValue>
<ParameterId>-2499999974</ParameterId>
<SlNo>1</SlNo>
</ReadingsLiteTaildto>
<ReadingsLiteTaildto>
<FinalValue>70</FinalValue>
<InputText>Chiller Feeder Current Y - Ph</InputText>
<InputValue>0.0</InputValue>
<ParameterId>-2499999973</ParameterId>
<SlNo>2</SlNo>
</ReadingsLiteTaildto>
<ReadingsLiteTaildto>
<FinalValue>70</FinalValue>
<InputText>Chiller Feeder Current B - Ph</InputText>
<InputValue>0.0</InputValue>
<ParameterId>-2499999972</ParameterId>
<SlNo>3</SlNo>
</ReadingsLiteTaildto>
<ReadingsLiteTaildto>
<FinalValue>70</FinalValue>
<InputText>Chiller Energy Meter Reading</InputText>
<InputValue>0.0</InputValue>
<ParameterId>-2499999971</ParameterId>
<SlNo>4</SlNo>
</ReadingsLiteTaildto>
</ReadingsLiteTaildtos>
<ReadingDateTime>1381757157596</ReadingDateTime>
<PartyBranchId>-2500000000</PartyBranchId>
<ParametersetId>-2499999974</ParametersetId>
<AssetId>-2499999995</AssetId>
<TaskId>811291126760647</TaskId>
<WorkOUId>-1</WorkOUId>
<activityid>-2500000000</activityid>
<userid>-2499999993</userid>
<entrymode>0</entrymode>
<DeviceId>-1</DeviceId>
</soapenv:Body>
i wish to raise an event when final value cross the max value like more than 100 so how would i write Stream and
ExecutionPlan
In stream-manger-config.xml file consist 3 section
1.metaData 2.Correlation Data 3.Payload Data
so above message how would i define which data is under which section one more we should define input payload and out payload as well in same stream config file else we need to define separate
Is cep help for this usecase or not
Thanx in Advance.