on ‎2016 Aug 08 6:57 AM
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
Request clarification before answering.
Hi,
I am getting a notification xml from PCo as below.
<NotificationMessage>
<Header>
<Name>PCoUptime</Name>
<Description><![CDATA[PCoUptime]]></Description>
<Destination>MII</Destination>
<CreatedDate>2016-08-09T06:19:07</CreatedDate>
<ID>1ed4611c-657d-4263-976d-8a1e4f7f11d1</ID>
<Status>Delivered</Status>
</Header>
<Body>
<Values/>
</Body>
<Faults>
<Fault><![CDATA[Output expression 'Expression1' - [severity = Fatal] Tag 'COOKER Up' is not in the cache. Check the acceptable data quality filter in the corresponding source system.]]></Fault>
</Faults>
</NotificationMessage>
I am facing an issue in fetching the created date value in MII from the above xml.
Can anyone suggest some ideas on this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shitikantha,
You creat a Transaction.
Create xml type input paramater to your transaction name it NotificationInputXML.
copy paste the XML above as a value for the input paramater NotificationInputXML.
now inside a sequence add a tracer action block.
in link expression of tracer mapp the Message property with Transaction.NotificationInputXML{/NotificationMessage/Header/CreatedDate}
execute the Trx you can retrieve the created date.
regards,
Kuntal
Hi Kuntal,
I guess what you are trying to say is to hard code the xml to an input parameter and fetch the created date. I have tried that and its working. But what I want is to fetch it dynamically i.e. when a notification xml will come from PCo to MII I want to fetch the created date from that xml in a run time basis because the xml is going to change everytime.
Hope my requirement is clear?
Regards,
Shitikantha Nanda
Hi,
I got your requirement,
I just shown you how we can access the values. just a test Trx. but now if the same test Trx you use and runtime pass the same form of XML as input ( we can remove the hadcoded XML) then the same code will work to get the created date vlues( different values in different xml passed as input) form the xml input.
** the Xpath used to access the values will depend on structure of XML
Regards,
Kuntal
Hi Kuntal,
I am having an input transaction parameter which I have mapped in PCo Notification destination. I have mapped the same input parameter to a write file to store it in web file.
The issue is that I am getting the XML in the web file but when I am putting a tracer to get the output of that input parameter, it is giving me blank and because of this I am unable to get the created date value.
Any suggestions?
Regards,
Shitikantha Nanda
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.