Merge pull request #113 from sartography/update_imports
Update SpiffWorkflow imports
This commit is contained in:
commit
11f137f8b0
|
@ -642,7 +642,7 @@ werkzeug = "*"
|
||||||
type = "git"
|
type = "git"
|
||||||
url = "https://github.com/sartography/flask-bpmn"
|
url = "https://github.com/sartography/flask-bpmn"
|
||||||
reference = "main"
|
reference = "main"
|
||||||
resolved_reference = "16eb4fc1b5b314934b2967a6727b09bb3b8479d0"
|
resolved_reference = "b33362f2d62bbb4c1d1a1c992f6b057c8e71431c"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "Flask-Cors"
|
name = "Flask-Cors"
|
||||||
|
|
|
@ -23,8 +23,8 @@ from flask_bpmn.api.api_error import ApiError
|
||||||
from flask_bpmn.models.db import db
|
from flask_bpmn.models.db import db
|
||||||
from lxml import etree # type: ignore
|
from lxml import etree # type: ignore
|
||||||
from lxml.builder import ElementMaker # type: ignore
|
from lxml.builder import ElementMaker # type: ignore
|
||||||
from SpiffWorkflow import Task as SpiffTask # type: ignore
|
from SpiffWorkflow.task import Task as SpiffTask # type: ignore
|
||||||
from SpiffWorkflow import TaskState
|
from SpiffWorkflow.task import TaskState
|
||||||
from sqlalchemy import desc
|
from sqlalchemy import desc
|
||||||
|
|
||||||
from spiffworkflow_backend.exceptions.process_entity_not_found_error import (
|
from spiffworkflow_backend.exceptions.process_entity_not_found_error import (
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from SpiffWorkflow import Task as SpiffTask # type: ignore
|
from SpiffWorkflow.task import Task as SpiffTask # type: ignore
|
||||||
|
|
||||||
from spiffworkflow_backend.scripts.script import Script
|
from spiffworkflow_backend.scripts.script import Script
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from SpiffWorkflow import Task as SpiffTask # type: ignore
|
from SpiffWorkflow.task import Task as SpiffTask # type: ignore
|
||||||
|
|
||||||
from spiffworkflow_backend.scripts.script import Script
|
from spiffworkflow_backend.scripts.script import Script
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ from typing import Any
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
from flask_bpmn.api.api_error import ApiError
|
from flask_bpmn.api.api_error import ApiError
|
||||||
from SpiffWorkflow import Task as SpiffTask # type: ignore
|
from SpiffWorkflow.task import Task as SpiffTask # type: ignore
|
||||||
|
|
||||||
# Generally speaking, having some global in a flask app is TERRIBLE.
|
# Generally speaking, having some global in a flask app is TERRIBLE.
|
||||||
# This is here, because after loading the application this will never change under
|
# This is here, because after loading the application this will never change under
|
||||||
|
|
|
@ -43,13 +43,14 @@ class GitService:
|
||||||
def commit(message: str) -> str:
|
def commit(message: str) -> str:
|
||||||
"""Commit."""
|
"""Commit."""
|
||||||
bpmn_spec_absolute_dir = current_app.config["BPMN_SPEC_ABSOLUTE_DIR"]
|
bpmn_spec_absolute_dir = current_app.config["BPMN_SPEC_ABSOLUTE_DIR"]
|
||||||
git_username = ''
|
git_username = ""
|
||||||
git_email = ''
|
git_email = ""
|
||||||
if current_app.config["GIT_COMMIT_USERNAME"] and current_app.config["GIT_COMMIT_EMAIL"]:
|
if (
|
||||||
|
current_app.config["GIT_COMMIT_USERNAME"]
|
||||||
|
and current_app.config["GIT_COMMIT_EMAIL"]
|
||||||
|
):
|
||||||
git_username = current_app.config["GIT_COMMIT_USERNAME"]
|
git_username = current_app.config["GIT_COMMIT_USERNAME"]
|
||||||
git_email = current_app.config["GIT_COMMIT_EMAIL"]
|
git_email = current_app.config["GIT_COMMIT_EMAIL"]
|
||||||
shell_command = (
|
shell_command = f"./bin/git_commit_bpmn_models_repo '{bpmn_spec_absolute_dir}' '{message}' '{git_username}' '{git_email}'"
|
||||||
f"./bin/git_commit_bpmn_models_repo '{bpmn_spec_absolute_dir}' '{message}' '{git_username}' '{git_email}'"
|
|
||||||
)
|
|
||||||
output = os.popen(shell_command).read() # noqa: S605
|
output = os.popen(shell_command).read() # noqa: S605
|
||||||
return output
|
return output
|
||||||
|
|
|
@ -16,9 +16,6 @@ from flask import current_app
|
||||||
from flask_bpmn.api.api_error import ApiError
|
from flask_bpmn.api.api_error import ApiError
|
||||||
from flask_bpmn.models.db import db
|
from flask_bpmn.models.db import db
|
||||||
from lxml import etree # type: ignore
|
from lxml import etree # type: ignore
|
||||||
from SpiffWorkflow import Task as SpiffTask # type: ignore
|
|
||||||
from SpiffWorkflow import TaskState
|
|
||||||
from SpiffWorkflow import WorkflowException
|
|
||||||
from SpiffWorkflow.bpmn.exceptions import WorkflowTaskExecException # type: ignore
|
from SpiffWorkflow.bpmn.exceptions import WorkflowTaskExecException # type: ignore
|
||||||
from SpiffWorkflow.bpmn.parser.ValidationException import ValidationException # type: ignore
|
from SpiffWorkflow.bpmn.parser.ValidationException import ValidationException # type: ignore
|
||||||
from SpiffWorkflow.bpmn.PythonScriptEngine import Box # type: ignore
|
from SpiffWorkflow.bpmn.PythonScriptEngine import Box # type: ignore
|
||||||
|
@ -30,6 +27,7 @@ from SpiffWorkflow.bpmn.specs.events import EndEvent
|
||||||
from SpiffWorkflow.bpmn.workflow import BpmnWorkflow # type: ignore
|
from SpiffWorkflow.bpmn.workflow import BpmnWorkflow # type: ignore
|
||||||
from SpiffWorkflow.dmn.parser.BpmnDmnParser import BpmnDmnParser # type: ignore
|
from SpiffWorkflow.dmn.parser.BpmnDmnParser import BpmnDmnParser # type: ignore
|
||||||
from SpiffWorkflow.dmn.serializer import BusinessRuleTaskConverter # type: ignore
|
from SpiffWorkflow.dmn.serializer import BusinessRuleTaskConverter # type: ignore
|
||||||
|
from SpiffWorkflow.exceptions import WorkflowException # type: ignore
|
||||||
from SpiffWorkflow.serializer.exceptions import MissingSpecError # type: ignore
|
from SpiffWorkflow.serializer.exceptions import MissingSpecError # type: ignore
|
||||||
from SpiffWorkflow.spiff.parser.process import SpiffBpmnParser # type: ignore
|
from SpiffWorkflow.spiff.parser.process import SpiffBpmnParser # type: ignore
|
||||||
from SpiffWorkflow.spiff.serializer import BoundaryEventConverter # type: ignore
|
from SpiffWorkflow.spiff.serializer import BoundaryEventConverter # type: ignore
|
||||||
|
@ -47,6 +45,8 @@ from SpiffWorkflow.spiff.serializer import StartEventConverter
|
||||||
from SpiffWorkflow.spiff.serializer import SubWorkflowTaskConverter
|
from SpiffWorkflow.spiff.serializer import SubWorkflowTaskConverter
|
||||||
from SpiffWorkflow.spiff.serializer import TransactionSubprocessConverter
|
from SpiffWorkflow.spiff.serializer import TransactionSubprocessConverter
|
||||||
from SpiffWorkflow.spiff.serializer import UserTaskConverter
|
from SpiffWorkflow.spiff.serializer import UserTaskConverter
|
||||||
|
from SpiffWorkflow.task import Task as SpiffTask # type: ignore
|
||||||
|
from SpiffWorkflow.task import TaskState
|
||||||
from SpiffWorkflow.util.deep_merge import DeepMerge # type: ignore
|
from SpiffWorkflow.util.deep_merge import DeepMerge # type: ignore
|
||||||
|
|
||||||
from spiffworkflow_backend.models.active_task import ActiveTaskModel
|
from spiffworkflow_backend.models.active_task import ActiveTaskModel
|
||||||
|
|
|
@ -6,8 +6,8 @@ from dataclasses import dataclass
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from SpiffWorkflow import Task as SpiffTask # type: ignore
|
|
||||||
from SpiffWorkflow.bpmn.exceptions import WorkflowTaskExecException # type: ignore
|
from SpiffWorkflow.bpmn.exceptions import WorkflowTaskExecException # type: ignore
|
||||||
|
from SpiffWorkflow.task import Task as SpiffTask # type: ignore
|
||||||
|
|
||||||
from spiffworkflow_backend.services.process_instance_processor import (
|
from spiffworkflow_backend.services.process_instance_processor import (
|
||||||
CustomBpmnScriptEngine,
|
CustomBpmnScriptEngine,
|
||||||
|
|
Loading…
Reference in New Issue