Squashed 'SpiffWorkflow/' changes from cd4da465e..46f410a28

46f410a28 Merge pull request #265 from sartography/bugfix/spiff-script-errors
ffe07df7b correct xpath for extensions

git-subtree-dir: SpiffWorkflow
git-subtree-split: 46f410a2852baeedc8f9ac5165347ce6d4470594
This commit is contained in:
burnettk 2022-11-20 19:48:29 -05:00
parent 37b7f3d7cd
commit d2af3e7252

View File

@ -23,7 +23,7 @@ class SpiffTaskParser(TaskParser):
extensions = {}
extra_ns = {SPIFFWORKFLOW_MODEL_PREFIX: SPIFFWORKFLOW_MODEL_NS}
xpath = xpath_eval(node, extra_ns)
extension_nodes = xpath(f'.//bpmn:extensionElements/{SPIFFWORKFLOW_MODEL_PREFIX}:*')
extension_nodes = xpath(f'./bpmn:extensionElements/{SPIFFWORKFLOW_MODEL_PREFIX}:*')
for node in extension_nodes:
name = etree.QName(node).localname
if name == 'properties':