Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

How to raise an application error at SXI_MONITOR from Java Mapping

$
0
0

Dear gurus,

 

I’m working with PI 7.30 and I’ve a Java mapping which I’d like to stop when a certain field comes empty from ERP.

 

I mean during my code I’m checking if the field is empty and in case it is an exception is raised to flag the message to red at SXI_MONITOR.

 

Unfortunately I’ve been trying the classes StreamTransformationException , StreamTransformationRuntimeException,RuntimeException, Exception, etc.. but without success.

 

my code inside a method:

 

if(fName.equalsIgnoreCase("") || fFrmt.equalsIgnoreCase("")){

     thrownew RuntimeException("text");  

 

Does anyone knows how to achieve that?

 

Thanks in advance and regards,

Jorge


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>