cancel
Showing results for 
Search instead for 
Did you mean: 

AlertConsumerJobV2 in PO 7.31 SP14

arijit_mukherjee2
Participant
0 Kudos

Hello Experts,

Has anyone worked on the Alert consumer Job called "AlertConsumerJobV2". This has a description "Simple alert consuming solution for generation of emails. Enhances and replaces the job AlertConsumerJob. It offers additional parameters and the possibility to use an email template.".

It says that you can use template for alert email. If anyone worked, can you please share the steps? Thanks in advance.

Regards,

Arijit

Accepted Solutions (1)

Accepted Solutions (1)

Dimitri
Active Contributor
0 Kudos

Hi,

Check Configuring a Local Consumer on AS Java - Administering Process Integration (PI) - SAP Library  and more specifically the part about the additional parameters. All necessary information is available.

Kind regards,

Dimitri

arijit_mukherjee2
Participant
0 Kudos

Thanks Dimitri,I checked that and it says about SAP note #2088606.

Do you know how do I use "$uds_attributes$: User Defined data from the PI message" in the email template file. Do I need to configure the User Defined Data anywhere? If yes then how?

Thanks

Arijit

Dimitri
Active Contributor
0 Kudos

Hi Arjit,

Check this one

Kind regards

Dimitri

arijit_mukherjee2
Participant
0 Kudos

Thanks Dimitri, That is what I was wondering that whether we need to use the same User Defined Message Search config to get the value in variable used in template or not. So basically we need use the name of the criteria as the variable in the email template. In my case if the criteria name is AccountNumber(which I configured using User-Defined Message Search Configuration), the email template should have the variable as $AccountNumber$ to get the value of AccountNumber for that interface.

Please let me know if I am wrong.Thanks for your help!!

Regards

Arijit

Dimitri
Active Contributor
0 Kudos

Hi Arjit,

Did you try and test?

If not, please do so and revert back with the result.

Kind regards,

Dimitri

arijit_mukherjee2
Participant
0 Kudos

Dear Dimitri,

I have tested but the "$uds_attributes$:" is still not working.

I created user defined search.

I tested that and it works

Now I maintained UDS attribute in the email template like below.

UDS attributes: $SearchName$

However while the email is generated for a failure, the valuer for the UDS attribute is not coming. but all other details are looking good.

Any idea and help would be much appreciated.

Thanks

Arijit

Dimitri
Active Contributor
0 Kudos

Hi,

Have a look at OSS note 2088606 and check your UDS attributes.

This should work.

Kind regards,

Dimitri

arijit_mukherjee2
Participant
0 Kudos

Dear Dimitri,

I already had a look into that and followed the steps. Also as you can see from above screen shots that my UDS configuration is working in message monitoring. But while I use that UDS search criteria in email template then it is unable to pick the value. Any other thoughts??

Thanks,

Arijit

Dimitri
Active Contributor
0 Kudos

Not for the moment, no.

Perhaps let SAP look into it.

Perhaps this is still a small bug.

arijit_mukherjee2
Participant
0 Kudos

Thanks Dimitri. Let me know if you find anything in future.

Regards,

Arijit

Former Member
0 Kudos

Hi Arijit

Not sure if your issue is resolved, but i did set up last week for "AlertConsumerJobV2" and i was getting the UDS data in mail.

I defined it like this in Template file:

[User Defined Data : $uds_attributes$]

Email screenshot

Former Member
0 Kudos

Hi.

What SP do you have? I tried on 7.4 SP11, and "[User Defined Data : $uds_attributes$]" is always empty.

Former Member
0 Kudos

I have 7.4 SP09

Former Member
0 Kudos

Hi.

Very strange. Can you please provide your template file? I tried this:


...

[Namespace: $msg_interface_namespace$]

[Business data: $uds_attributes$]

[GID: $GID$]

[Channel Component: $channel_component$]

...

Where GID is name of UDS. But in email, $uds_attributes$ and $GID$ are empty.

Former Member
0 Kudos

PFB the text from my template file

The Message ID for the failed message is $msg_id$ . You can check the failed message here : $monitoring_url$

PFB the more details for the failed message.

Error Details:

[Severity : $severity$]

[Internal ID : $alert_rule_id$]

[Alert Rule name : $alert_rule_name$]

[Alert creation time : $timestamp$]

[PI Component : $pi_component$]

[ICO/iFlow ID : $scenario_id$]

[Scenario Name : $scenario_name$]

[Error Category : $error_category$]

[Error Code : $error_code$]

[Error Label : $error_label$]

[Error Text : $error_text$]

[Additional Error Parameters : $error_parameters$]

[Message ID : $msg_id$]

[Sender Party : $msg_from_party$]

[Sender Component : $msg_from_component$]

[Receiver Party : $msg_to_party$]

[Receiver Component : $msg_to_component$]

[Interface Name : $msg_interface$]

[Interface Namespace : $msg_interface_namespace$]

[User Defined Data : $uds_attributes$]

[Adapter Type : $adapter_type$]

[Adapter Namespace : $adapter_namespace$]

[Communication Channel name : $channel_name$]

[Comm Channel Party Name : $channel_party$]

[Comm Channel Component Name : $channel_component$]

[Message Monitoring URL : $monitoring_url$]

[Message Monitoring URL : $secure_monitoring_url$]

arijit_mukherjee2
Participant
0 Kudos

Hi Osman,

In my case I have written like below.

User Defined Data : $SearchName$ because that is the name of the filter I created. Do you think that was wrong?


Thanks

Arijit

Former Member
0 Kudos

yes i think that is wrong....because in the Note i didn't see any place where they have mentioned to use the filter name as the value.

This template will be common for all the Alert rules, so suppose you have 5 interfaces and all have different UDS values defined. How will your value work as you are mentioning UDS filter value of only one interface in the template.

use this value in template.

[User Defined Data : $uds_attributes$]


$uds_attribute$ is the default value, this will read all the UDS value for the interfaces and print it in the alert mail.


Regards

Osman

Former Member
0 Kudos

The correct variable is $uds_attributes$. And it working fine, if you set flag "payload in alert" to Enable in Alert Rule in ESR.

arijit_mukherjee2
Participant
0 Kudos

Hi Ivan and Osman,

If I use the template like [User Defined Data : $uds_attributes$], then how come the consumer will recognize the exact field which I need?


Appreciate your help and feedback!

Thanks

Arijit

Former Member
0 Kudos

Hi Arijit

You can tune it with UDS filter: NWA / SOA / Monitoring / User-Defined Message Search Configuration

Former Member
0 Kudos

Hi Arijit

When you use value [User Defined Data : $uds_attributes$] in template you will receive the values in key pair format in the mail as shown below.

User Defined Data : {"FieldName1":"Value1","FieldName2":"Value2"}



Regards

Osman

Answers (0)