Message by addErrorMessage() is not displayed when using Subflow from Business ruleDescriptionCustomer define Flow action using addErrorMessage() in Paris to display custom error message.=========================Process Automation > Flow Designer > New > ActionName : jw_1006_AddErrorMsgScript--------------(function execute(inputs, outputs) {gs.addErrorMessage(inputs.message);})(inputs, outputs);--------------=========================When customer call this FD action from business rule directly, custom error message is displayed as expected.However, when they call this FD action from BR via subflow, custom error message is not displayed.Steps to Reproduce 1.Create Flow Action using addErrorMessage(), then publish Process Automation > Flow Designer > New > ActionName : jw_1006_AddErrorMsgAccessible From : All application scopesApplication : GlobalInputsLabel | Name | Type | Mandatory-----------------------------------------Message | message | String | YesScript stepInput VariablesName | Value-----------------------------message | action > MessageScript--------------(function execute(inputs, outputs) {// ... code ...gs.addErrorMessage(inputs.message);})(inputs, outputs);--------------2.Create Business Rule to call FD Action System Definition > Business RulesName : jw_TestBR01Table : IncidentActive : YesAdvanced : YesWhen to runWhen : beforeOrder : 10Insert : YesUpdate : YesFilter ConditionShort description contains TestBR01AdvancedCondition : (null)Script----------------------(function executeRule(current, previous /*null when async*/ ) {var inputs = {};inputs['message'] = gs.getMessage('Test Message From jw_TestBR01'); // Stringsn_fd.FlowAPI.executeAction('global.jw_1006_AddErrorMsg', inputs);current.setAbortAction(true);current.setWorkflow(false);})(current, previous);----------------------3.Test to create a incidentIncident > Create NewNumber : INC0010002Short description : TestBR01Save==>Test Message From jw_TestBR01Invalid insertThe custom error message is displayed with "Invalid insert" as expected.BR:jw_TestBR01 and FD Action:jw_1006_AddErrorMsg works normally.4.Create Subflow to call FD ActionProcess Automation > Flow Designer > New > SubflowName : jw_1006_Subflow_01Application : GlobalAccessible From : This application scope onlyRun As : User who initiates sessionInputsLabel | Name | Type | Mandatory---------------------------------------------------03_sys_id | 03_sys_id | String | Yes04_err_message | 04_err_message | String | YesOutputsLabel | Name | Type-------------------------result | result | StringActions1:jw_1006_AddErrorMsgAction : jw_1006_AddErrorMsgMessage : Input > 04_err_message2:Assign Subflow OutputsName | Data----------------result | NG5.Create Business Rule to call SubflowSystem Definition > Business RulesName : jw_TestBR02Table : IncidentActive : YesAdvanced : YesWhen to runWhen : beforeOrder : 11Insert : YesUpdate : YesFilter ConditionShort description contains TestBR02AdvancedCondition : (null)Script----------------------(function executeRule(current, previous /*null when async*/ ) {var inputs = {};var sys_id_03 = current.sys_id;inputs['03_sys_id'] = sys_id_03; // Stringinputs['04_err_message'] = gs.getMessage('Test Message From jw_TestBR02'); // Stringvar result = sn_fd.FlowAPI.getRunner().subflow('global.jw_1006_Subflow_01').inForeground().withInputs(inputs).run();var outputs = result.getOutputs();var answer =outputs['result'];if(answer === 'NG'){current.setAbortAction(true);current.setWorkflow(false);}})(current, previous);----------------------6.Test to create a incidentIncident > Create NewNumber : INC0010003 (Sys ID:59f4eff71b6fd810811c520d0a4bcb5a)Short description : TestBR02Save==>Invalid insertThe custom error message is NOT displayed, only "Invalid insert".7.Check Flow engine contextProcess Automation > Flow Administration > Today's ExecutionCreated : 2020-10-07 00:07:53Name : jw_1006_Subflow_01State : CompleteRuntime : 3Created by : adminSys Id : 2725e33b316fd81075d1d5914dca84dfOpen in Operations ViewSubflow InputVARIABLE NAME | TYPE | RUNTIME VALUE------------------------------------------------------------03_sys_id | String | 59f4eff71b6fd810811c520d0a4bcb5a04_err_message | String | Test Message From jw_TestBR02Subflow OutputVARIABLE NAME | TYPE | RUNTIME VALUE----------------------------------------result | String | NG==>Subflow set inputs correctly, but custom error message is not displayedIn this situation, FD Action:jw_1006_AddErrorMsg does not work as expected. WorkaroundCreate a subflow output with the message to be displayed or status code. Pass this output back to the calling business rule who should really display the message anywayRelated Problem: PRB1437310