Merge commit '5f2eab770c99ff2649b0ab03d315ea4c48c47bca'
This commit is contained in:
commit
37bb78b40a
|
@ -5,8 +5,9 @@ from SpiffWorkflow.task import Task as SpiffTask # type: ignore
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ScriptAttributesContext():
|
class ScriptAttributesContext:
|
||||||
"""ScriptAttributesContext."""
|
"""ScriptAttributesContext."""
|
||||||
|
|
||||||
task: SpiffTask
|
task: SpiffTask
|
||||||
environment_identifier: str
|
environment_identifier: str
|
||||||
process_instance_id: int
|
process_instance_id: int
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
"""Get_process_info."""
|
"""Get_process_info."""
|
||||||
from typing import Any
|
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
|
from spiffworkflow_backend.scripts.script import Script
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,6 +22,6 @@ class GetProcessInfo(Script):
|
||||||
) -> Any:
|
) -> Any:
|
||||||
"""Run."""
|
"""Run."""
|
||||||
return {
|
return {
|
||||||
'process_instance_id': script_attributes_context.process_instance_id,
|
"process_instance_id": script_attributes_context.process_instance_id,
|
||||||
'process_model_identifier': script_attributes_context.process_model_identifier,
|
"process_model_identifier": script_attributes_context.process_model_identifier,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue