Skip to main content
Solved

Execute Workflow with End Message and User Task


Furkan Zengin
Ultimate Hero (Partner)
Forum|alt.badge.img+21

Hello experts,

 

I developed a workflow that reads customer order no from activity seq (order no is activity ID field) and retrieves email address from customer order or customer master then sends a confirmation email about activity finish date.

 

The workflow works fine but i have a small issue with showing result message. When the order does not exist or when no email address found i want to end event with a message of detail issue.

 

If the process is successful, i am showing the user a confirmation message with language and receiver’s email address with User Task (1 form field with read only option).

My problem is when no order or no email address found. If i change end event type to IFS failure or terminate end event, i cannot add a command button because the command validation returns error.

 

 

During my tests, i achieved to show a message when the event was terminated but after finalizing all settings (of course i made lots of changes in the flow :), i cannot generate a message to user saying no order found or no default email address found etc. I have a workaround with user task to show a message. But is there a way to show a message with end event?

 

One more question with reading projection call. If the order does not exist in the customer orders then system returns Resource Not Found error and does not flow to end event. I could bypass this by reading collection and control the result in the script task. Is there an alternative to this?

 

Thanks

Furkan

Best answer by kamnlk

Hi ​@Furkan Zengin ,

As you have seen in the Workflow, we cannot use User task and Termination End task in the same workflow.

There is an alternative approach discussed in another discussion that might be helpful how to show custom error messages in workflow? | IFS Community

 

For the second question

API task has an option called “Log Errors” To handle such scenarios. When that option is enabled, workflow will not fail at that point and move forward with logging the error. The expectation is the user will handle the error inside the workflow and do the necessary actions.  If not, the workflow will continue and give a success message. 

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

2 replies

Forum|alt.badge.img+9
  • Hero (Employee)
  • 132 replies
  • Answer
  • June 23, 2025

Hi ​@Furkan Zengin ,

As you have seen in the Workflow, we cannot use User task and Termination End task in the same workflow.

There is an alternative approach discussed in another discussion that might be helpful how to show custom error messages in workflow? | IFS Community

 

For the second question

API task has an option called “Log Errors” To handle such scenarios. When that option is enabled, workflow will not fail at that point and move forward with logging the error. The expectation is the user will handle the error inside the workflow and do the necessary actions.  If not, the workflow will continue and give a success message. 


Furkan Zengin
Ultimate Hero (Partner)
Forum|alt.badge.img+21
  • Author
  • Ultimate Hero (Partner)
  • 737 replies
  • June 23, 2025

Hello ​@kamnlk 

Thank you very much for your answer. As always, you are very helpful. I did not exactly understand how to show an error or warning so I ended up with read only user task to show my message. I tried error_sys.record_general but it does not go to finish and shows system defined error rather than my message. There is already a topic in the community for this complaning about the same thing.

 

The Workflow/BPA should display the actual business error message instead of just a generic '500 Internal Server Error.' | IFS Community

 

I created client_sys.add_warning projection call but it does not give any warning So i gave up and finished with user task.

 

Just one question with login user’s session language. I wanted to generate multi language message but i could not find how to retrieve current language. I remember i saw similar topic in the community but i was not able to find it either. Can you share please how to get it?

 

P.s. I attached the exported workflow in txt if you would like to see

Thanks

Furkan

 


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