cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to use alert action block to trigger a transaction?

Former Member
0 Likes
628

Hi,

I have set a notification trigger condition in PCo i.e. sum of few tags to be greater than 0, and I have created a transaction to mark the downtime in OEE every time the notification condition is not met. Can anyone suggest how to use alert action block to trigger that transaction? Also how can I capture the particular time from PCo when the tags are fetched?

Can anyone suggest some ideas on this?

Regards,

Shitikantha Nanda

View Entire Topic
former_member204155
Active Participant
0 Likes

Hi,

As per my understanding from what you have explained about your requirement.

1. Alert action will create an alert, that can be seen from alert monitor screen of MII and same time it will trigger mail to all mapped roles for the alert.

2.to get the time stamp of your notification, you can get that from your notification XML generated by PCo or you can have an output expression to return datenow from PCo ( it will be in UTC format).

Regards,

Kuntal

Former Member
0 Likes

Hi Kuntal,

Thanks for replying. Let me elaborate my requirement.

I am using a write file to fetch the notification output xml from PCo and then using a text loader to read the xml from the web file where it is getting stored. Then I am using an Raise Alert action block to which I have mapped an alert object in which I have mapped a transaction that will be called when an alert will be raised.

Is my approach correct?

Regards,

Shitikantha Nanda

former_member204155
Active Participant
0 Likes

If purpose is to call a transaction ( which is delivery Trx for Alert) to execute a business logic based on the notification arrival from PCo. ( if alert fram work is not needed); you can do so by directly map your transaction as the PCo notification destination and map NotificationInputXML input parameter to deliver the notification XML.

If you want to implement Alert framework to manage alerts (role based) with followup actions, you can create a transaction and map that as a destination in PCo notification as told in above scenario, then you can use raise alert action and map inputs to alert from received notification XML in link expression of the action. As a delivery transaction in your Alert obj you can map your business logic transaction to be executed on alert raise. (viz; maintenance order creation).

regards,

Kuntal.

Former Member
0 Likes

Hi Shitikantha,

The PCo Notifcation XML message that is passed to an MII transaction contains a node CreatedDate which contains the UTC datetime of the notification creation. Also, any tag that is passed by defined Output items for a Notification contains a timestamp attribute containing the UTC time that that tag was updated from the source.  You see the structure and content of a Notification Message from within PCo by using the Test Notification Delivery capability from the PCo Notification Output tab.

Regards, Steve

Former Member
0 Likes

Hi Steve,

I got your point. I am getting the notification xml from PCo and using write file I am storing it in a Web file. Currently I am facing issue in fetching the created date value from the xml. Can you suggest some ways to do it?

Regards,

Shitikantha Nanda