In MWS navigate to Admin>Analytic s>Rules. Click Create Rule tab. Give the rule a name like Doc publish excessive, give a description and assign a severity. Select a rule type. This one would be a KPI. Check enabled and if you want human interaction to resolve click sticky. Now you’ll need to define the rule expression. An example would be:
Interval before true:1
Expression: Simple Expression
Operland: KPI value
Catagory" Broker
KPI: BrokerStats.numEventsPublishedByBroker
alue: Reading Value
Comparator:Greater then
Operland: Number
Value: 5
Click save and now you’ve created a rule. You can have a notification sent of brokern and create a Prediction for future events off this rule. 
#webMethods#webMethods-BPMS#BPM