Skip to main content
Solved

BPA IFS Failure Event - Customize the message from variable


Forum|alt.badge.img+2

I am working with BPA for validation purposes. To show a message I am using the IFS Failure Event (Validation Failure End Event) which is documented here: IFS Failure Event (Validation Failure End Event)

My goal is to display a message from a variable. 

In my BPA I have a script task that sets a message variable like so: 
 

 

I connected it directly to the IFS Failure and set the message to be ${errorMessage}: 
 

When this BPA runs the message never substitutes the variable: 
 

 

Any ideas? 

Best answer by adrianm

@PiItPL and @lstanczyk , I have thought of a solution.

Create a projection configuration for the page and add an action to call ERROR_SYS.APPL_GENERAL.

Call the action passing the custom error message as a parameter using variable substitution.

 

And that works…

 

 

View original
Did this topic help you find an answer to your question?

6 replies

Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 4 replies
  • April 19, 2024

Hi Lukasz,

did you find any solution? I have same issue.


adrianm
Do Gooder (Partner)
Forum|alt.badge.img+4
  • Do Gooder (Partner)
  • 12 replies
  • April 19, 2024

I also found it is not currently possible to use variable substitution in the error messages but if you have a limited number of error messages to display, use an Exclusive Gateway to show the appropriate message. Each IFS Failure Event will have to have fixed text for the relevant error. 

 


Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 4 replies
  • April 19, 2024

Hi Adrian,

thank you for the solution, but for me this is a terrible workaround.

I can't imagine creating different error messages when I want to add a workflow input parameter in the error text.

For me, the ability to use a variable as error message text is essential functionality. 


adrianm
Do Gooder (Partner)
Forum|alt.badge.img+4
  • Do Gooder (Partner)
  • 12 replies
  • April 19, 2024

Hi Piotr,

I totally agree but BPAs are a work in progress for IFS and that is the only method I have found as a workaround. There is also no ability to add record detail to the error message such as an order no to help users but hopefully IFS will add this functionality. Unfortunately it is not mentioned in the release notes for 24R1.

 

 


adrianm
Do Gooder (Partner)
Forum|alt.badge.img+4
  • Do Gooder (Partner)
  • 12 replies
  • Answer
  • April 19, 2024

@PiItPL and @lstanczyk , I have thought of a solution.

Create a projection configuration for the page and add an action to call ERROR_SYS.APPL_GENERAL.

Call the action passing the custom error message as a parameter using variable substitution.

 

And that works…

 

 


Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 4 replies
  • April 19, 2024

@adrianm. many, many thanks for this solution! It works perfect.

Tip for next solution users: To remove dot from beginning of message add colon before message text.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings