Skip to content

Support event variables in transition expressions #84

@MarcoLm993

Description

@MarcoLm993

When writing an expression that refers to an event param, often the type of that param is not known beforehand and hence we cannot determine the expression resulting type.

The current workaround is to use additional (local) variables, that store the value before evaluating that in the expression, but it is far from being an optimal solution.

One approach we could investigate within this issue is the following:

  • Determine all events senders in the model, and store the parameters -> type association before starting the conversion.
  • Once that is done, use the information in the scxml to jani conversion, without the need of using support variables.

This falls in the "refactoring of AS2FM" category, most likely...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions