Not logged in | Login
For Activity Monitoring we will capture Activity Start and Activity Finished events as two input streams.
the event structures for ActivityFinished and ActivityStart are same. The BPEL engine event sender takes care of the type of event to stream mapping through different end points.
Next step is to create time based buckets for these events so that relation is based on a finite size of events. In the sample project the time based window is used for this purpose with window size of 5 hours. Then combine the result from these time based buckets into a relation map as following
TimeBasedWindow0.activityID=TimeBasedWindow1.activityID and TimeBasedWindow0.processID=TimeBasedWindow1.processID
the elapsed time from start to end is calculated as an expression in Relation map as timeGap.
Next step is to aggregate the relation into required groups and and statistics as following .
After the aggregation with required groupings and statistics is available we'll save the results into an Output Global table which can be accessed to see the KPIs.
The complete IEP process for Activity Monitoring looks like this
Rest of the IEP process design is same as that of Activity monitoring with time based buckets and a relation map followed by a relation aggregation to aggregate time elapsed into required categories. The results are saved into a global table to be accessed by other applications.