Skip to content

Commit f3ff50f

Browse files
committed
Add get_input to DurableOrchestrationContext
1 parent 344f540 commit f3ff50f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

azure/durable_functions/models/DurableOrchestrationContext.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def __init__(self,
2525
history: List[Dict[Any, Any]], instanceId: str, isReplaying: bool,
2626
parentInstanceId: str, **kwargs):
2727
self._histories: List[HistoryEvent] = [HistoryEvent(**he) for he in history]
28+
self._input: str = kwargs["input"]
2829
self._instance_id: str = instanceId
2930
self._is_replaying: bool = isReplaying
3031
self._parent_instance_id: str = parentInstanceId
@@ -157,6 +158,11 @@ def call_sub_orchestrator(self,
157158
"""
158159
raise NotImplementedError("This is a placeholder.")
159160

161+
def get_input(self) -> str:
162+
"""Get the orchestration input.
163+
"""
164+
return self._input
165+
160166
def new_uuid(self) -> str:
161167
"""Create a new UUID that is safe for replay within an orchestration or operation.
162168

0 commit comments

Comments
 (0)