Showing posts with label Events. Show all posts
Showing posts with label Events. Show all posts

Friday, December 18, 2015

Event DB changes

It is also possible to create events that can monitor for field changes.  This is not as comprehensive as the full audit trail functionality, but is easy to setup and may be sufficient in some cases.

Setup for database logging


a) Change the existing record in CMS045



b) Check the box for event DB changes (CMS912)



c) Open the related program CMS048 to define the fields



d) Create a new field you are interested in




e) Mark the field as active



f) Stop auto job CMS912





g) Start the auto job





View the log entries


a) Start from CMS045




b) In CMS048 display the Event Log



c) Display the details of the entry



d) Below shows the old and new values and who made the change



e) This data is stored in csylog and can be retrieved by the sql statement below



Thursday, December 17, 2015

Viewing the Event - Events Part 6 of 6

You have several options for viewing the event.  Mingle is an additional option but I don't have this installed yet.

a) Application Message Open



b) Inbox Widget




Make sure your settings for the widget has M3 Application Messages enabled.




Note the neither option A or B automatically refresh, in my view this makes them more pull than push.

c) Email


In my opinion this is the best option.  In this case it is truly a push event.  You receive an email when the event occurs.  Clicking on the link will launch Smart Office if it is not already started, otherwise it will launch the program on the correct panel, in the correct mode and positioned to the correct field.

Define the Event Based Alert - Events Part 5 of 6

If you have been following along up until now you should now have all the background pieces in place. The next step is to create the subscription and event(s) associated with it.

a) Subscriptions are defined in program CMS045



For an M3 event, the Event Name should be the M3 table name.


The 'Ev name op' should be the database operation you are trying to capture.  I have selected an update transaction.



The 'Event publ' should be M3.




In summary, we are subscribed to events published by M3 when an Update to the table OCUSMA occurs.


b) Mark the status as preliminary until it is configured




c) With the subscription in place, next step is to define the alert.  This is done in CMS047 which you launch from a related option in CMS045





d) Create a new record in CMS047



It is possible to have more than one alert for a subscription, I am using 1 for the RID above.




e) On the E panel you define the event


I have defined the logical formula such that the event is processed when the customer name is changed.

I have hard coded a receiver for the event.

When the 'receiver' opens the event, smart office will open the program in change mode (option 2) on the E panel, positioned to field CUNM (Customer Name)


f) When you are done, remember to set the subscription status to 20






g) It is not enough to just change the status.  The auto job needed to be stopped.



h) And of course, started again.





All that remains is to wait until someone changes a customer name.



Monday, December 14, 2015

Configure Event Property and Auto Job - Events Part 4 of 6

Configure System Property


a) Change the system property as shown below to enable the required M3 publisher within the Event Hub





b) After a restart, you should have the M3 publisher active within the Event Hub as shown below.

Not totally sure if you need to restart the M3BE grid and the both Event Hub and Event Analytics or some combination of each.


Configure Auto Job


a) If you have the Auto Job below then you need do nothing further




b) If you have the CMS911 auto job listed but it is not running, start as shown below



c) If you do not have CMS911 as an available option, run the option below to create standard Auto jobs then repeat the previous step to start.







Wednesday, December 2, 2015

Configure Event based messages in Smart Office - Events Part 3 of 6

a) Check program CRS424.  If Event-based messages are already active you don't need to do anything further



b) If Event-based messages is present but not active, simply change the record and make it active.



c) If Application Message Type 12 is missing then you need to Create Message Types first.  After creation go back to b) above and activate.



Setup for Email which launches Smart Office - Events Part 2 of 6

This will only work if you have already completed Events Part 1

a) First sign on to Smart Office


b) Start program CRS438 and display the record for your user profile.


c) Remember the values for UI install pt, UI server and UI srvr profile




d) Start program CRS437 and create a new UI server ID



e) Start program CRS427 and create a new record for your user profile


Application message type = 12 for Event based messages

Send e-mail = 2 for Email with bookmark link



Note that if you only wish to receive an email with no bookmark type link, there is no need to create a UI server ID value in CRS437 and you would specify the CRS427 record as below



Wednesday, November 25, 2015

Setup for Email - Events Part 1 of 6


If you don't already have working email functionality in CRS111, you are going to need to change some properties and create at least one email record.

1. Change the property


From within Life Cycle Manager (LCM)

a) Select the Configure Application option against the Business Engine component.

b) Then take the Edit properties link

c) Search for the parameter you wish you change


d) Click on the IP Address to bring up the update property dialog


e) Change the value and update the property


f) Save the changes to the configuration


g) Changes are not active until after you stop and start the Business Engine component


2. Create an email record


From within Smart Office - or H5 client


a) Add a record to CRS111


b) Add the email address


c) Test the email address


d) Look for the email message - in my case Outlook