Merge commit '5f2eab770c99ff2649b0ab03d315ea4c48c47bca'

This commit is contained in:
burnettk 2022-10-31 09:28:42 -04:00
commit 37bb78b40a
2 changed files with 7 additions and 4 deletions

View File

@ -5,8 +5,9 @@ from SpiffWorkflow.task import Task as SpiffTask # type: ignore
@dataclass
class ScriptAttributesContext():
class ScriptAttributesContext:
"""ScriptAttributesContext."""
task: SpiffTask
environment_identifier: str
process_instance_id: int

View File

@ -1,7 +1,9 @@
"""Get_process_info."""
from typing import Any
from spiffworkflow_backend.models.script_attributes_context import ScriptAttributesContext
from spiffworkflow_backend.models.script_attributes_context import (
ScriptAttributesContext,
)
from spiffworkflow_backend.scripts.script import Script
@ -20,6 +22,6 @@ class GetProcessInfo(Script):
) -> Any:
"""Run."""
return {
'process_instance_id': script_attributes_context.process_instance_id,
'process_model_identifier': script_attributes_context.process_model_identifier,
"process_instance_id": script_attributes_context.process_instance_id,
"process_model_identifier": script_attributes_context.process_model_identifier,
}