work around parser.get_process_dependencies returning a set containing the element None
This commit is contained in:
parent
29fc062727
commit
be250eb6d4
|
@ -9,8 +9,8 @@ from spiffworkflow_backend.models.script_attributes_context import (
|
||||||
from spiffworkflow_backend.scripts.script import Script
|
from spiffworkflow_backend.scripts.script import Script
|
||||||
|
|
||||||
|
|
||||||
class GetUser(Script):
|
class GetCurrentUser(Script):
|
||||||
"""GetUser."""
|
"""GetCurrentUser."""
|
||||||
|
|
||||||
def get_description(self) -> str:
|
def get_description(self) -> str:
|
||||||
"""Get_description."""
|
"""Get_description."""
|
||||||
|
|
|
@ -8,7 +8,7 @@ from spiffworkflow_backend.scripts.script import Script
|
||||||
|
|
||||||
|
|
||||||
class GetProcessInfo(Script):
|
class GetProcessInfo(Script):
|
||||||
"""GetUser."""
|
"""GetProcessInfo."""
|
||||||
|
|
||||||
def get_description(self) -> str:
|
def get_description(self) -> str:
|
||||||
"""Get_description."""
|
"""Get_description."""
|
||||||
|
|
|
@ -732,6 +732,10 @@ class ProcessInstanceProcessor:
|
||||||
if processed_identifiers is None:
|
if processed_identifiers is None:
|
||||||
processed_identifiers = set()
|
processed_identifiers = set()
|
||||||
processor_dependencies = parser.get_process_dependencies()
|
processor_dependencies = parser.get_process_dependencies()
|
||||||
|
|
||||||
|
# since get_process_dependencies() returns a set with None sometimes, we need to remove it
|
||||||
|
processor_dependencies = processor_dependencies - {None}
|
||||||
|
|
||||||
processor_dependencies_new = processor_dependencies - processed_identifiers
|
processor_dependencies_new = processor_dependencies - processed_identifiers
|
||||||
bpmn_process_identifiers_in_parser = parser.get_process_ids()
|
bpmn_process_identifiers_in_parser = parser.get_process_ids()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue