Closed calexh-sar closed 2 years ago
@calexh-sar FYI, I'm seeing this error when updating a workflow, not when validating. Specifically, the error occurs when we try to set the primary process. Validation seems to work for a workflow, if I remove the isExecutable tag.
Is this what you were seeing, or did it actually happen during validation?
@cullerton I was not aware there was a difference between "updating a workflow" and "validating the workflow", so it very well could have happened during the updating process only.
@calexh-sar For one you click the save button, and for the other you click the shield button.
@cullerton understood, I just assumed, incorrectly I now know, that the validation was getting called in both cases.
On the Modeler General tab, the is the Executable option
When checked the last part of the
bpmn:definitions
XML indicates `isExecutable="true"If that checkbox is inadvertently unchecked, the it appears that the validator throws this error:
Once the checkbox is checked again, validation passes. But from this point it seems to pass validation regardless of whether the checkbox is checked or not.
@danfunk did some digging and posted in Slack:
So it seems if it is unchecked, it doesn't add that tag, but once it is checked, the tag is there and toggles between true and false.
Dan also indicated the code related to this is 'if child.tag.endswith('process') and child.attrib.get('isExecutable', False):' and that it is 'weird the code I'm looking at would have me thinking the opposite'.
Work on this ticket is to get a better error message if the tag is not in the XML.