Question

Process element to display a warning message

Hello All,

I am trying to displaying a  warning message in the middle of the business process. Based on the input provided in the warning message, the process would diverge into two sub process. I know that we can add the warning message in the client side code but I need the warning message in between the process, Is there any process element which can be used to display a warning message? Please let me know how to approach this case.

Please refer to any example business process in the base configuration that covers the above scenario.

Thanks,

 

File attachments

Like

1 comments

Dear Ayswariya,

You need to go through the following steps to accomplish the task:

 

1. Generate the message via Web-socket channel within the process you are working in.

2. Open the edit page schema and subscribe to the messages. Here's the example of the code you can use:

subscriptionFunction: function() {
		            Terrasoft.ServerChannel.on(Terrasoft.EventName.ON_MESSAGE,
		                    this.onMyProcessMessage, this);
},
 
onMyProcessMessage: function(scope, message) {
		            if (!message || message.Header.Sender !== "MyProcess") {
			            return;
		            }
		            var message = message.Body;
		            if (!this.Ext.isEmpty(message)) {
		                this.Terrasoft.showInformation(message);
		            }
	            }

3. Call showInformationDialog() in the call method

This will allow you to show the popup message window. 

 

Lisa

Show all comments