Skip to content

Bug-Activity Multiline not greater then 5 nodes #6

@uluj

Description

@uluj
  • Problem: activity processor fails to detect multiline nodes giving Multiline not greater then 5 nodes errors while detecting 3 nodes
    and Test_Info.py/DiagramExamples import not detecting due to missing "." in

from .diagram_examples import

if this is known problem i can open pull request fixing these errors

improved Parsing that will parse the text beforehand with adding multilines

         if not line or line.startswith("@") or line.startswith("'"):
               continue

            if in_multiline_activity:
                activity_buffer += "\n" + line
                if line.endswith(";"):
                    clean_lines.append(activity_buffer)
                    in_multiline_activity = False
                    activity_buffer = ""
                continue
            
            if line.startswith(":") and not line.endswith(";"):
                in_multiline_activity = True
                activity_buffer = line
                continue

            if in_multiline_if:
                if_buffer += " " + line
                if "then" in line.lower():
                    clean_lines.append(if_buffer)
                    in_multiline_if = False
                    if_buffer = ""
                continue
            
            if line.lower().startswith("if (") and "then" not in line.lower():
                in_multiline_if = True
                if_buffer = line
                continue

            clean_lines.append(line) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions