From d62d50544a8cb06a73003a8f51bc35e718ae3b32 Mon Sep 17 00:00:00 2001 From: Elizabeth Esswein Date: Tue, 20 Dec 2022 11:10:59 -0500 Subject: [PATCH] fix more bs errors --- .../spiffworkflow_backend/routes/process_api_blueprint.py | 4 ++-- .../services/process_instance_processor.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py index d01468e8f..023bc0d31 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_api_blueprint.py @@ -2290,7 +2290,7 @@ def send_bpmn_event( process_instance_id: str, body: Dict, ) -> Response: - """Send a bpmn event to a workflow""" + """Send a bpmn event to a workflow.""" process_instance = ProcessInstanceModel.query.filter( ProcessInstanceModel.id == int(process_instance_id) ).first() @@ -2315,7 +2315,7 @@ def mark_task_complete( task_id: str, body: Dict, ) -> Response: - """Mark a task complete without executing it""" + """Mark a task complete without executing it.""" process_instance = ProcessInstanceModel.query.filter( ProcessInstanceModel.id == int(process_instance_id) ).first() diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py index 301461b72..87d5e1030 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py @@ -705,13 +705,13 @@ class ProcessInstanceProcessor: db.session.commit() def serialize_task_spec(self, task_spec: SpiffTask) -> Any: - """Get a serialized version of a task spec""" + """Get a serialized version of a task spec.""" # The task spec is NOT actually a SpiffTask, it is the task spec attached to a SpiffTask # Not sure why mypy accepts this but whatever. return self._serializer.spec_converter.convert(task_spec) def send_bpmn_event(self, event_data: dict[str, Any]) -> None: - """Send an event to the workflow""" + """Send an event to the workflow.""" payload = event_data.pop("payload", None) event_definition = self._event_serializer.restore(event_data) if payload is not None: @@ -723,7 +723,7 @@ class ProcessInstanceProcessor: self.do_engine_steps(save=True) def mark_task_complete(self, task_id: str) -> None: - """Mark the task complete without executing it""" + """Mark the task complete without executing it.""" spiff_task = self.bpmn_process_instance.get_task(UUID(task_id)) spiff_task._set_state(TaskState.COMPLETED) self.bpmn_process_instance.last_task = spiff_task