ESB
13.2 13.1 13.0 12.2 12.1 12.0 11.0
13.2 13.1 13.0 12.2 12.1 12.0 11.0

Running Simple Chat Event Process

Contents

An Event Process: 'SimpleChat' is provided in eStudio application as a sample to understand the functionality of Chat component. To find the Simple Chat EP, Open Server Explorer window from Window > Show View and find under Samples folder in Event Process Repository. Double-click to open the sample.

simpchat.png

Functionality

For 2 chat components that are connected to each other,

  • Messages sent from chat1 appear in chat2.

  • Alternatively, messages sent from chat2 appear in chat1.

Execution

Refer the Running an Event Process section to understand how to use the icons responsible for running an Event Process.

To run the Simple Chat application available in Samples, follow the below steps:

  1. Click Check Resource and Connectivity worddavdcebab7f12b986c8985ea2d26891e4de.png icon (or press ALT+SHIFT+C) to check resource and connectivity before running the EP (Event Process).

    Icons to check resource and connectivity, run event process, stop event process etc can be found in the figure above (on the tool bar).

  2. Click Run Event Process  worddav82f91584bb6551669bba658276e0f32d.png icon (ALT+SHIFT+R) to run the EP.

  3. Two windows representing the Chat services appear (SIMPLECHAT__1_0_chat1 and SIMPLECHAT__1_0_chat2 in the figure below).

  4. Type a sample message in SIMPLECHAT__1_0_chat1 and press Enter; notice that the message appears in SIMPLECHAT_1_0_chat2 window.

    By default, the font color that appears on the window from which the message is sent will be black and that of the recipient will be blue. This can be changed in Component CPS. 


    worddava321f49f379313adf402562070a511d8.png

  5. Type a message in SIMPLECHAT_1_0chat2, press Enter and notice that the message appears in SIMPLECHAT_1_0__chat1. 

  6. Click Stop Event Process  worddav41de4549c43d0606def49f8c400f0cef.png icon to stop the running event process, which closes the chat windows too.

While the application is running, the font colour of the services appear green and Stop  worddav41de4549c43d0606def49f8c400f0cef.png  icon gets visible/active.

image2017-6-30 15:55:7.png