You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a transition branch refers to a target state and specifies error types in curly braces, the validator should check that there is only one type token specified. The meta-model and grammar allow a type set with multiple types, but only one type or type product should be permitted. This is checked for ErrorBehaviorTransition.targetToken and ErrorPath.targetToken, but not TransitionBranch.targetToken. The following model should have errors:
package missing_validation
public
system s
end s;
system implementation s.i
annex EMV2 {**
use types ErrorLibrary;
use behavior missing_validation::machine1;
component error behavior
events
event1: error event;
transitions
state1 -[event1]-> (
state2 {ServiceError, ItemTimingError} with 0.4,
state3 {CommonErrors} with 0.6
);
end component;
**};
end s.i;
annex EMV2 {**
error behavior machine1
use types ErrorLibrary;
states
state1: initial state;
state2: state {CommonErrors};
state3: state {CommonErrors};
end behavior;
**};
end missing_validation;
There should be an error for the branch to state2 because it lists multiple types and there should be an error for the branch to state3 because CommonErrors is a type set.
The text was updated successfully, but these errors were encountered:
When a transition branch refers to a target state and specifies error types in curly braces, the validator should check that there is only one type token specified. The meta-model and grammar allow a type set with multiple types, but only one type or type product should be permitted. This is checked for
ErrorBehaviorTransition.targetToken
andErrorPath.targetToken
, but notTransitionBranch.targetToken
. The following model should have errors:There should be an error for the branch to
state2
because it lists multiple types and there should be an error for the branch tostate3
becauseCommonErrors
is a type set.The text was updated successfully, but these errors were encountered: