svlad-90 / DLT-Message-Analyzer

"Extended search" plugin for the DLT-viewer
Other
76 stars 13 forks source link

[UML_VIEW] Add possibility to specify values for absent parts of UML sequence #85

Closed svlad-90 closed 4 years ago

svlad-90 commented 4 years ago

It might happen, that formatting of existing messages in the project does not fit constraint to have all mandatory UML groups. Thus the creation of a sequence diagram is not possible. Still, the client might understand that specific formatting of the message is representing communication with a specific interface and method, and wants to provide this information as part of the regex. We should allow the client to do this.


Let's consider the following example:

2206 2020/08/06 15:27:04.204000 276163.1118 ECU1 SYS JOUR 2020/08/06 15:27:03.556033 cat[49294]: Informational: CAlice: sentName(name: "Alice") 2207 2020/08/06 15:27:04.703000 276163.5468 ECU1 SYS JOUR 2020/08/06 15:27:03.991085 cat[49299]: Informational: CAlice: response(success: 1)

What would I expect to do with the above messages?

I want to use the following regex in order to achieve the above mentioned points: ^(SYS).?: Informational: (?CAlice):.?(?(?(?sentName)|(?response))).*((?[\w]+))

New parts of behavior:

If supported, above will allow creating sequence diagrams even from non-perfectly formatted messages, expanding the number of covered use-cases.

P.S. Together with that, it would be good to remove the 32 characters limitation on size of the regex group names. It should be possible to do that via internal mapping of provided group names to some shorter identifiers, e.g. counter-based ones - 1, 2, 3, 4, etc. Short identifiers would be actually used within the regex, while long names would be still known to the plugin's implementation.

svlad-90 commented 4 years ago

It was decided, that we will deal with removal of 32 chars regex group name limitation using a separate task: https://github.com/svlad-90/DLT-Message-Analyzer/issues/87