Skip to content

In the BA plugin, BehaviorVariable's lose their DataClassifier's namespace reference after modification #2550

Description

@RyanMcilnay

Summary

The namespace reference for a BehaviorVariable's DataClassifier is lost in the text editor after deleting BehaviorStates that are the source and destination of a BehaviorTransition.

Expected and Current Behavior

BehaviorAnnex Before Modification:

annex behavior_specification {**
    variables
        variable : Base_Types::String;
    states
        s1 : initial state;
        s2 : state;
    transitions
        s1 -[]-> s2;
**};

BehaviorAnnex After Modification: (Base_Types reference is missing)

annex behavior_specification {**
    variables
        variable : String;
    transitions
        s1 -[]-> s2;
**};

Base_Types should not be lost when the states are deleted.

Steps to Reproduce

  1. Paste the code below into the text editor
  2. Right click on the behavior_specification
  3. Select "Open Diagram" from the context menu and create the new diagram
  4. Right click on s1 and select "Delete"
  5. Right click on s2 and select "Delete"
  6. Open the text editor and the Base_Types reference will be gone from the BehaviorVariable "v"
package test
public
	with Base_Types;

	abstract a
		annex behavior_specification {**
			variables
			    v : Base_Types::String;
			states
			    s1 : initial state;
			    s2 : state;
			transitions
				s1 -[]-> s2;
		**};
	end a;
end test;

Environment

  • Operating System: Windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions