[DEFERRED] Use Editor API for action def body (parameters, sequencing, nested actions) once upstream ships

Abierto
#18 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
api, tooling

Línea de trabajo

Start with the editor.add_member(kind='action def', name='ToastCycle') probe and the OpenSysML Editor API, using SysML v2 specification clause 7.15 as the requirements reference. This issue is done when the upstream API supports in/out parameters, nested action usages, and first/then sequencing, allowing the workaround fragments to be replaced; no repository file or test is named.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Context

The opensysml v0.9.0 parser accepts this construct:

```sysml
package P {
private import ScalarValues::*;
action def ToastCycle {
in bread : ScalarValues::String;
out toast : ScalarValues::String;
first action load { in b : ScalarValues::String; }
then action heat;
then action eject { out t : ScalarValues::String; }
}
}
```

Probing (2026-09-25): editor.add_member(kind='action def', name='ToastCycle') produces only
action def ToastCycle; — a bare declaration. In-parameters, out-parameters, nested action
usages, and first/then sequencing are not expressible via the API.

Spec reference

SysML v2 Language Specification formal/2026-03-02, clause 7.15 (ActionDefinition —
ActionBody, OwnedParameterMembership with in/out/inout direction, ActionUsageMembership,
SuccessionMembership with first/then)

Current workaround

```python

action def body not yet supported in Editor API — toaster#18 / OpenSysML#TBD

spec: SysML v2 formal/2026-03-02 §7.15 (ActionDefinition, ActionBody, OwnedParameterMembership)

TOAST_CYCLE_DEF = "action def ToastCycle {"
TOAST_CYCLE_IN = " in bread : ScalarValues::String;"
TOAST_CYCLE_OUT = " out toast : ScalarValues::String;"
TOAST_CYCLE_LOAD = " first action load { in b : ScalarValues::String; }"

etc.

```

Upstream issue

Open-MBEE/OpenSysML#TBD (to be filed)

Resolution

When the Editor API supports in/out parameters, nested action usages, and first/then
sequencing on action defs, replace each fragment variable with the corresponding API call.

Lenguaje dominante
Jupyter Notebook
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Open-MBEE/toaster

Todos los issues de Open-MBEE/toaster

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.