Hi Niveathika/Reza, There are five types of flows involved in the MessageFlow widget and three different ways are implemented(please refer [1] and [2]) to draw them graphically.
To get the required information to draw the graph, the MessageFlow widget subscribes to the SearchBox and the DateTimePicker widgets in the API, Proxy, Sequence and Inbound Endpoint flow types. However, for the flow type message, the required input to draw the graph is the message Id. Here the Message table widget is responsible to redirect the user to the page corresponds to the message with the required message id[3], in which the MessageFlow widget will extract the message id and draw the required graph. I have included the references pointing to the corresponding code regarding scenarios mentioned above and mentioned them inline. Please have a look. [1] https://github.com/wso2/analytics-solutions/blob/8a2f8449213748a8d7f9efa1955b3306d7fe5385/components/ei-analytics/org.wso2.analytics.solutions.ei.analytics/widgets/EIAnalyticsMessageFlow/src/EIAnalyticsMessageFlow.jsx#L1234 [2] https://github.com/wso2/analytics-solutions/blob/8a2f8449213748a8d7f9efa1955b3306d7fe5385/components/ei-analytics/org.wso2.analytics.solutions.ei.analytics/widgets/EIAnalyticsMessageFlow/src/EIAnalyticsMessageFlow.jsx#L1201 [3] https://github.com/wso2/analytics-solutions/blob/8a2f8449213748a8d7f9efa1955b3306d7fe5385/components/ei-analytics/org.wso2.analytics.solutions.ei.analytics/widgets/EIAnalyticsMessageTable/src/EIAnalyticsMessageTable.jsx#L99 Thanks, Tharindu. On Wed, Dec 19, 2018 at 2:08 PM Niveathika Rajendran <[email protected]> wrote: > Hi all, > > What are the publishers for the message flow widget in EI Analytics > dashboard? > > Best Regards, > *Niveathika Rajendran,* > *Senior Software Engineer.* > *Mobile : +94 077 903 7536* > > > > > > ---------- Forwarded message --------- > From: Niveathika Rajendran <[email protected]> > Date: Wed, Dec 19, 2018 at 2:05 PM > Subject: Re: Connect ESB to SP > To: Reza Ameri <[email protected]> > > > Hi Reza, > > Glad to hear it! > > As message flow widget is a custom widget, this wiring is handled in the > code [1]. That's why this wiring is not explicitly done in the MessageFlow > widget case. > > Furthermore, as I am unaware of the exact use case of message flow widget, > I am routing this email to the WSO2 Developers list. > > [1] > https://github.com/wso2/analytics-solutions/blob/master/components/ei-analytics/org.wso2.analytics.solutions.ei.analytics/widgets/EIAnalyticsMessageFlow/src/EIAnalyticsMessageFlow.jsx#L1208 > > Best Regards, > *Niveathika Rajendran,* > *Senior Software Engineer.* > *Mobile : +94 077 903 7536* > > > > > > On Mon, Dec 17, 2018 at 9:07 PM Reza Ameri <[email protected]> wrote: > >> It worked. Thank you. >> I am wondering how the original MessageFlow widget works. Its >> configuration is not like what I have made; it does subscribe to other >> widgets but it does not have parameters like mine. Also, the other >> difference between my widget and the original one is that by clicking on >> any message row, you can see the message flow graphically. >> >> Thank you Niveathika, >> Reza >> >> *Reza Ameri* >> Software Architect >> https://www.linkedin.com/in/rezaameri/ >> >> >> On Fri, Dec 14, 2018 at 1:47 PM Niveathika Rajendran <[email protected]> >> wrote: >> >>> Hi Reza, >>> >>> In the configuration pane, under the tick box, you will see the >>> receiving properties followed by a drop down. This has to be connected >>> properly. In your case, componentName should be connected to >>> selectedComponent as the component name is published as selectedComponent[1] >>> >>> >>> [1] >>> https://github.com/wso2/analytics-solutions/blob/master/components/ei-analytics/org.wso2.analytics.solutions.ei.analytics/widgets/EIAnalyticsSearchBox/src/resources/widgetConf.json#L11 >>> >>> Best Regards, >>> *Niveathika Rajendran,* >>> *Senior Software Engineer.* >>> *Mobile : +94 077 903 7536* >>> >>> >>> >>> >>> >>> On Thu, Dec 13, 2018 at 5:37 PM Reza Ameri <[email protected]> wrote: >>> >>>> Yes, it is. >>>> >>>> *Reza Ameri* >>>> Software Architect >>>> https://www.linkedin.com/in/rezaameri/ >>>> >>>> >>>> On Thu, Dec 13, 2018 at 3:32 PM Niveathika Rajendran < >>>> [email protected]> wrote: >>>> >>>>> Hi Reza, >>>>> >>>>> When you meant filter changes, is the component Name change? >>>>> >>>>> Best Regards, >>>>> *Niveathika Rajendran,* >>>>> *Senior Software Engineer.* >>>>> *Mobile : +94 077 903 7536* >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Thu, Dec 13, 2018 at 4:32 PM Reza Ameri <[email protected]> wrote: >>>>> >>>>>> Hi, >>>>>> I did what you said and unfortunately, it does not work for me! >>>>>> >>>>>> [image: image.png] >>>>>> >>>>>> >>>>>> >>>>>> *Reza Ameri* >>>>>> Software Architect >>>>>> https://www.linkedin.com/in/rezaameri/ >>>>>> >>>>>> >>>>>> On Thu, Dec 13, 2018 at 1:27 PM Niveathika Rajendran < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi Reza, >>>>>>> >>>>>>> If you have removed and added a new widget. the wiring between the >>>>>>> publishers and subscribers instances have to be done again. >>>>>>> >>>>>>> Please see the subsection, "Wring publishers and subscribers"[1] on >>>>>>> how to do wire publishers and subscribers. >>>>>>> >>>>>>> [1] >>>>>>> https://docs.wso2.com/display/SP4xx/Inter+Widget+Communication+via+the+PubSub+Model >>>>>>> >>>>>>> Best Regards, >>>>>>> *Niveathika Rajendran,* >>>>>>> *Senior Software Engineer.* >>>>>>> *Mobile : +94 077 903 7536* >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Thu, Dec 13, 2018 at 3:11 PM Reza Ameri <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Hello again, >>>>>>>> >>>>>>>> Thank you. your links worked. I am trying to change the Message >>>>>>>> Table widget to show Duration. I used the portal, adding widget wizard. >>>>>>>> with this configuration: >>>>>>>> >>>>>>>> *Siddhi App:* >>>>>>>> @store(type='rdbms', datasource='EI_ANALYTICS', >>>>>>>> field.length="contextPropertyMap:5000,beforePayload:5000,afterPayload:5000,transportPropertyMap:5000") >>>>>>>> @Index('metaTenantId','messageFlowId','host','hashCode','componentName','componentType','componentIndex','componentId','startTime','endTime','entryPoint','entryPointHashcode','faultCount') >>>>>>>> define table ESBEventTable(metaTenantId int, messageFlowId string, host >>>>>>>> string, hashCode string, componentName string, componentType string, >>>>>>>> componentIndex int, componentId string, startTime long, endTime long, >>>>>>>> duration long, beforePayload string, afterPayload string, >>>>>>>> contextPropertyMap string, transportPropertyMap string, children >>>>>>>> string, >>>>>>>> entryPoint string, entryPointHashcode string, faultCount int, >>>>>>>> eventTimestamp long); >>>>>>>> >>>>>>>> *Script:* >>>>>>>> return "from ESBEventTable on startTime>="+timeFrom+"L and >>>>>>>> metaTenantId=="+metaTenantId+" and componentType=='"+componentType+"' >>>>>>>> and >>>>>>>> componentName =='"+componentName+"' select >>>>>>>> messageFlowId,host,startTime,endTime,duration, >>>>>>>> ifThenElse(faultCount>0,'Failed','Success') as faultCount order by >>>>>>>> startTime desc limit 100" >>>>>>>> >>>>>>>> *Input Data:* >>>>>>>> *Input Name Default Value* >>>>>>>> timeFrom 1543838319516 >>>>>>>> metaTenantId -1234 >>>>>>>> componentType api >>>>>>>> componentName test_2 >>>>>>>> >>>>>>>> This widget works but it does not update on filter changes. I mean >>>>>>>> I think it is the subscriber widget by default. I don't know why it >>>>>>>> does >>>>>>>> not change. (I added this widget to API page in EI Analytics >>>>>>>> dashboard.) >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> *Reza Ameri* >>>>>>>> Software Architect >>>>>>>> https://www.linkedin.com/in/rezaameri/ >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Dec 3, 2018 at 4:09 PM Niveathika Rajendran < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi Reza, >>>>>>>>> >>>>>>>>> We welcome your contribution. >>>>>>>>> >>>>>>>>> You can find the code related to the EI Analytics solution in, >>>>>>>>> analytics-solution[1] repository. >>>>>>>>> >>>>>>>>> You'll find the following resources, >>>>>>>>> 1. Custom extension >>>>>>>>> 2. Custom widget code >>>>>>>>> 3. Exported dashboard JSON containing generated widget code. >>>>>>>>> >>>>>>>>> Please see our documentation "Creating custom widgets"[2] for >>>>>>>>> further information. >>>>>>>>> >>>>>>>>> [1] https://github.com/wso2/analytics-solutions >>>>>>>>> [2] https://docs.wso2.com/display/SP430/Creating+Custom+Widgets >>>>>>>>> >>>>>>>>> Best Regards, >>>>>>>>> *Niveathika Rajendran,* >>>>>>>>> *Senior Software Engineer.* >>>>>>>>> *Mobile : +94 077 903 7536* >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Dec 3, 2018 at 6:00 PM Reza Ameri <[email protected]> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Thank you for the solution. I want to change some of the codes in >>>>>>>>>> EI-Analytics dashboard and widget codes. I couldn't find the source >>>>>>>>>> in the >>>>>>>>>> github repo. Can you please help me to find the source code of the >>>>>>>>>> widgets? >>>>>>>>>> I am willing to contribute to the project. >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> Reza >>>>>>>>>> >>>>>>>>>> *Reza Ameri* >>>>>>>>>> Software Architect >>>>>>>>>> https://www.linkedin.com/in/rezaameri/ >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Thu, Nov 29, 2018 at 12:27 PM Reza Ameri <[email protected]> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> >>>>>>>>>>> I have opened an issue on github[1], I really need to solve the >>>>>>>>>>> problem would you help me with this? >>>>>>>>>>> >>>>>>>>>>> Thanks, >>>>>>>>>>> Reza >>>>>>>>>>> >>>>>>>>>>> [1] https://github.com/wso2/product-sp/issues/867 >>>>>>>>>>> >>>>>>>>>>> *Reza Ameri* >>>>>>>>>>> Software Architect >>>>>>>>>>> https://www.linkedin.com/in/rezaameri/ >>>>>>>>>>> >>>>>>>>>> -- *Tharindu Bandara* Software Engineer | WSO2 Email : [email protected] Mobile : +94 714221776 web : http://wso2.com <https://www.google.com/url?q=http://wso2.com&sa=D&ust=1517653383990000&usg=AFQjCNFggB4bSJTKmdqKcBV0VY9xx1ABKg> https://wso2.com/signature
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
