Skip to content

Undefined variable in "replace" branch of Player Piano #25

Description

The following line is in the "replace" branch of Player Piano:
type_to_get = com.nomagic.magicdraw.uml.ClassifierFinder.findClassifierOrDataType(live_project, 'String', [], sysml_package);

The variable sysml_package isn't defined anywhere. Based on the context, variable name, and method documentation, sysml_package should be set to the element that is the SysML profile package.

Looking at the findClassifierOrDataType() method documentation from 19.0 SP4 and later versions It doesn't look like this method has changed since at least that version. So any fix is probably independent of version changes

I'm not super familiar with what Player Piano is trying to do in this section, and I haven't yet encountered an error caused by this line. It would be worth having someone more familiar with RMT come up with a test case that actually makes use of this part of the script.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions