fix bug with opening call activities when processes conflict with dmn files
This commit is contained in:
parent
d4c1055077
commit
acc57410d9
|
@ -79,7 +79,8 @@ from spiffworkflow_backend.routes.user import verify_token
|
||||||
from spiffworkflow_backend.services.authorization_service import AuthorizationService
|
from spiffworkflow_backend.services.authorization_service import AuthorizationService
|
||||||
from spiffworkflow_backend.services.error_handling_service import ErrorHandlingService
|
from spiffworkflow_backend.services.error_handling_service import ErrorHandlingService
|
||||||
from spiffworkflow_backend.services.file_system_service import FileSystemService
|
from spiffworkflow_backend.services.file_system_service import FileSystemService
|
||||||
from spiffworkflow_backend.services.git_service import GitService, GitCommandError
|
from spiffworkflow_backend.services.git_service import GitCommandError
|
||||||
|
from spiffworkflow_backend.services.git_service import GitService
|
||||||
from spiffworkflow_backend.services.message_service import MessageService
|
from spiffworkflow_backend.services.message_service import MessageService
|
||||||
from spiffworkflow_backend.services.process_instance_processor import (
|
from spiffworkflow_backend.services.process_instance_processor import (
|
||||||
ProcessInstanceProcessor,
|
ProcessInstanceProcessor,
|
||||||
|
@ -985,7 +986,7 @@ def _get_process_instance(
|
||||||
name_of_file_with_diagram = None
|
name_of_file_with_diagram = None
|
||||||
if process_identifier:
|
if process_identifier:
|
||||||
spec_reference = SpecReferenceCache.query.filter_by(
|
spec_reference = SpecReferenceCache.query.filter_by(
|
||||||
identifier=process_identifier
|
identifier=process_identifier, type="process"
|
||||||
).first()
|
).first()
|
||||||
if spec_reference is None:
|
if spec_reference is None:
|
||||||
raise SpecReferenceNotFoundError(
|
raise SpecReferenceNotFoundError(
|
||||||
|
|
|
@ -743,11 +743,9 @@ class ProcessInstanceProcessor:
|
||||||
"bpmn_file_full_path_from_bpmn_process_identifier: bpmn_process_identifier is unexpectedly None"
|
"bpmn_file_full_path_from_bpmn_process_identifier: bpmn_process_identifier is unexpectedly None"
|
||||||
)
|
)
|
||||||
|
|
||||||
spec_reference = (
|
spec_reference = SpecReferenceCache.query.filter_by(
|
||||||
SpecReferenceCache.query.filter_by(identifier=bpmn_process_identifier)
|
identifier=bpmn_process_identifier, type="process"
|
||||||
.filter_by(type="process")
|
).first()
|
||||||
.first()
|
|
||||||
)
|
|
||||||
bpmn_file_full_path = None
|
bpmn_file_full_path = None
|
||||||
if spec_reference is None:
|
if spec_reference is None:
|
||||||
bpmn_file_full_path = (
|
bpmn_file_full_path = (
|
||||||
|
|
Loading…
Reference in New Issue