Merge commit '5f2eab770c99ff2649b0ab03d315ea4c48c47bca'
This commit is contained in:
commit
37bb78b40a
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue