Skip to content

Commit

Permalink
change subprocess start event validation error message text
Browse files Browse the repository at this point in the history
  • Loading branch information
essweine committed Jul 26, 2023
1 parent a5ad067 commit 3236b5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SpiffWorkflow/bpmn/parser/task_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def get_subprocess_spec(task_parser):
workflow_start_event = task_parser.xpath('./bpmn:startEvent')
workflow_end_event = task_parser.xpath('./bpmn:endEvent')
if len(workflow_start_event) != 1:
raise ValidationException('Multiple Start points are not allowed in SubWorkflow Task',
raise ValidationException(
f'Exactly one start event is required in a SubWorkflow Task; found {len(workflow_start_event)}.',
node=task_parser.node,
file_name=task_parser.filename)
if len(workflow_end_event) == 0:
Expand Down

0 comments on commit 3236b5b

Please sign in to comment.