Configuring DES events for Business Rules in 10.3

,

DES events can be configured for Business Rules. There are various DES events that can be configured to emit for Business Rules.

List of DES events for Business Rules

a.  Project Import
b.  Project Export
c.  Project Delete
d.  Decision table change
e.  Event rule change
f.   Hot deployment
g.  Project deployment
h.  Project un-deployment

In the list a-f are My webmethods server events and g-h are Integration server events

Prerequisites

  1. Start following servers

a.  Universal messaging server
b.  My Webmethods Server
c.  Integration Server
d.  Mashzone NextGen Event Service
e.  Mashzone NextGen Server

  1. Configure connection alias in Integration server

a.  Login to IS http://<host>:5555 as Administrator/manage
b.  Navigate to Settings > Messaging > webMethods Messaging Settings > Change Default Connection Alias
c.  Set Connection Alias Name : IS_DES_CONNECTION
d.  Restart Integration server

  1. Create a Rule project(testRule) containing data model for IS document(doc), decision table(testDT) and Event Rule(testER) in Designer

 

  1. Configuration at MWS

a.  Login to MWS http://<host>:8585 as, Admministrator/manage
b.  Navigate to Applications > Administration > My webMethods > System Settings > webMethods Business Rules Settings
c.  Add Integration serve details

 

  1. Configuration in Designer

a.  Click Window > Preferences > search My webMethods Server > Add Server as shown

 

DES Event: Project Import [Import project into MWS]

  1. Login to Mashzone http://<host>:8080/mashzone as Administrator/manage
  2. Navigate to Administrator profile image > Admin console > Event Service > Digital Event Services > Create DES Event Source
  3. Provide

a.  Alias : ProjectImport
b.  Event Type: des.rules.publishable.ProjectImported  

  1. Save and start Project Import
  2. Create dash board for viewing triggered events

a.  Close Admin console and In Mashzone home page, Navigate to Create Dashboard drag and drop the Grid, 
b.  Provide grid name ProjectImport_Grid, 

 

c.  Click Assign data > Click Event Service under Products > Select IS_Document_Event in Event source drop down
d.  Click Configure columns... , select the columns > Click Ok > Click Next, drag and drop columns names from Data columns to Grid columns which are needed to be displayed in the grid on the occurrence of event

 

e.  Save dash board by clicking Save under Manage drop down

  1. In the designer, Right click on testRule > Export > Rule project to My webMethods Server repository > Finish. Consumption of the import event can be seen in Universal messaging enterprise manager as well as in created Mash zone dashboard

DES Event: Project Export[Export project from MWS]

  1. Follow the same steps as in DES Event: Project Import and make following changes,
  2. Provide

a.  Alias : ProjectExport
b.  Event Type: des.rules.publishable.ProjectExported
c.  Provide grid name as ProjectExport_Grid, while creating Mashzone dashboard

  1. In the Designer, Right click on the Rules > Import > Rule project to My webMethods Server repository >select testRule > Finish. Consumption of the Export event can be seen in Universal messaging enterprise manager as well as in created Mash zone dashboard

DES Event: Project Delete

  1. Follow the same steps as in DES Event: Project Import and make following changes,
  2. Provide

a.  Alias : Project Delete
b.  Event Type: des.rules.publishable.ProjectDeleted
c.  Provide grid name as ProjectDelete_Grid, while creating Mashzone dashboard

  1. In the designer, Right click on testRule > Export > Rule project to My webMethods Server repository > Finish. Exporting rules project for the second time from the designer causes older exported project to get deleted, hence it triggers 2 events

a.  DES Event: Project Import
b.  DES Event: Project Delete

Consumption of these events can be seen in Universal messaging enterprise manager as well as in created Mash zone dashboard.

 

DES Event: Decision table change

  1. Export the rule project(testRule) from designer into My webMethods Server
  2. Follow the same steps as in DES Event: Project Import and make following changes,
  3. Provide

a.  Alias : DTChange
b.  Event Type: des.rules.publishable.DecisionTableChanged
c.  Provide grid name as DTChange_Grid, while creating Mashzone dashboard

  1. Login to MWS http://<host>:8585 as Administrator/manage, Navigate to Applications > Administration > Business > webMethods Business Rules

a.  Imported testRule contents such as decision tables, decision trees, Event Rules and Rule sets are present “webMethods Business Rules” node
b.  Click on Decision Tables under imported rule project node, and then click on the decision table(testDT)

 

c.  Unlock the decision entity for editing, make modify few values in the decision table and save
d.  Save triggers DTChange event. Consumption of the this event can be seen in Universal messaging enterprise manager as well as in created Mash zone dashboard

DES Event: Event rule change

  1. Follow the same steps as in DES Event: Decision table change and make following changes,
  2. Provide

a.  Alias : eventRuleChange
b.  Event Type: des.rules.publishable.EventRuleChanged
c.  Provide grid name as eventRuleChange_Grid, while creating Mashzone dashboard

  1. In, MWS Navigate to Applications > Administration > Business > webMethods Business Rules > testRule > Event Rules, click testEventRule, make some changes and save

a.  Save triggers eventRuleChange event. Consumption of the this event can be seen in Universal messaging enterprise manager as well as in created Mash zone dashboard

 

DES Event: Hot Deployment

  1. Follow the same steps as in DES Event: Decision table change and make following changes,
  2. Provide

a.  Alias : hotDeployment
b.  Event Type: des.rules.publishable.RMCHotDeploymentStarted
c.  Provide grid name as eventRuleChange_Grid, while creating Mashzone dashboard

  1. In MWS, click “Hot Deployment” button, which triggers hotDeployment event. Consumption of the this event can be seen in Universal messaging enterprise manager as well as in created Mash zone dashboard

DES Event: Project Deployment

  1. Follow the same steps as in DES Event: Project Import and make following changes,
  2. Provide

a.  Alias : ProjectDeployed
b.  Event Type: des.rules.publishable.ProjectDeployed
c.  Provide grid name as projectDeployed_Grid, while creating Mashzone dashboard

  1. In designer, Right click on rule project(testRule) > Export > Rule Project to Integration Server runtime > Finish. Clicking Finish triggers ProjectDeployed event. Consumption of this event can be seen in Universal messaging enterprise manager as well as in created Mash zone dashboard.

DES Event: Project Un-deployment

  1. Follow the same steps as in DES Event: Project Deployment and make following changes,
  2. Provide

a.  Alias : ProjectUndeployed
b.  Event Type: des.rules.publishable.ProjectUndeployed
c.  Provide grid name as projectUndeployed_Grid, while creating Mashzone dashboard

  1. In designer, Right click on rule project(testRule) > Export > Rule Project to Integration Server runtime > Finish. Exporting rules project for the second time from the designer causes older exported project to get deleted, hence it triggers 2 events

a.  DES Event: Project Deployment
b.  DES Event: Project Un-deployment

Consumption of these events can be seen in Universal messaging enterprise manager as well as in created Mash zone dashboard.

Consumption of all the above events in the Mashzone dashboard,