Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History states do not generate expected PHP code #1338

Open
ZainabAlShowely opened this Issue Jul 18, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@ZainabAlShowely
Copy link
Contributor

ZainabAlShowely commented Jul 18, 2018

Generating PHP code with a state machine with history states does not properly implement history state behavior. A history or deep history state is handled as a generic new state ; it does not save the current state on a change of state.

The following code causes the issue:

generate Php;
class HistoryState
{
  sm {
    s1 {
      e -> s1.H;
      s1a { e1 -> s1b; }
      s1b { e2 -> s1a; }
    }
  }
}

Code generation for PHP would need to be fixed to take into account history states.

@ZainabAlShowely ZainabAlShowely changed the title History states not implemented in PHP code generation History states do not generate expected PHP code Jul 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.