Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
3f46221c
Commit
3f46221c
authored
Oct 09, 2016
by
Maxime Perrotin
Browse files
Raise an error when systems miss a start transition
parent
e16ae63f
Changes
3
Show whitespace changes
Inline
Side-by-side
README.md
View file @
3f46221c
...
...
@@ -145,6 +145,7 @@ Changelog
1.
5.13 (10/2016)
-
Better support of warnings
-
Fixed detection of CHOICE assignment erros
-
Raise error if process miss the start transition
1.
5.12 (09/2016)
-
Detect duplicate declaration of procedures
...
...
opengeode/ogParser.py
View file @
3f46221c
...
...
@@ -2890,6 +2890,10 @@ def process_definition(root, parent=None, context=None):
err
,
warn
=
procedure_post
(
proc
,
content
,
context
=
process
)
errors
.
extend
(
err
)
warnings
.
extend
(
warn
)
if
not
process
.
referenced
and
not
process
.
content
.
start
:
# detect missing START transition
errors
.
append
([
'Mandatory START transition is missing in process'
,
[
process
.
pos_x
,
process
.
pos_y
],
[]])
for
each
in
chain
(
errors
,
warnings
):
try
:
each
[
2
].
insert
(
0
,
'PROCESS {}'
.
format
(
process
.
processName
))
...
...
tests/regression/test-nocif2/DemoDeviceDSAP_fixed.pr
View file @
3f46221c
...
...
@@ -117,6 +117,10 @@ PROCESS DemoDemoDeviceDSAP;
RETURN;
ENDPROCEDURE;
start;
nextstate wait;
state wait;
endstate;
ENDPROCESS DemoDemoDeviceDSAP;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment