Skip to content

Commit

Permalink
fix(realization-view): Handle OperationalActivitys
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Apr 17, 2024
1 parent b71ca08 commit e970960
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions capellambse_context_diagrams/collectors/realization_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from capellambse.model import common, crosslayer
from capellambse.model.crosslayer import cs, fa
from capellambse.model.layers import oa

from .. import _elkjs, context
from . import makers
Expand Down Expand Up @@ -172,6 +173,8 @@ def collect_elements(

if isinstance(start, fa.Function):
attribute_name = f"{attribute_prefix}_functions"
elif isinstance(start, oa.OperationalActivity):
attribute_name = f"{attribute_prefix}_system_functions"
else:
assert isinstance(start, cs.Component)
attribute_name = f"{attribute_prefix}_components"
Expand Down

0 comments on commit e970960

Please sign in to comment.