Add support for multiple resume triggers (interrupts) with parallel branching:
class UiPathRuntimeResult(UiPathRuntimeEvent):
"""Result of an execution with status and optional error information."""
output: dict[str, Any] | BaseModel | str | None = None
status: UiPathRuntimeStatus = UiPathRuntimeStatus.SUCCESSFUL
trigger: UiPathResumeTrigger | None = None
+ triggers: list[UiPathResumeTrigger] | None = None
error: UiPathErrorContract | None = None
event_type: UiPathRuntimeEventType = Field(
default=UiPathRuntimeEventType.RUNTIME_RESULT, frozen=True
)
+ if self.triggers:
+ result["resumeTriggers"] = self.triggers.model_dump(by_alias=True)
Add support for multiple resume triggers (interrupts) with parallel branching:
class UiPathRuntimeResult(UiPathRuntimeEvent): """Result of an execution with status and optional error information.""" output: dict[str, Any] | BaseModel | str | None = None status: UiPathRuntimeStatus = UiPathRuntimeStatus.SUCCESSFUL trigger: UiPathResumeTrigger | None = None + triggers: list[UiPathResumeTrigger] | None = None error: UiPathErrorContract | None = None event_type: UiPathRuntimeEventType = Field( default=UiPathRuntimeEventType.RUNTIME_RESULT, frozen=True ) + if self.triggers: + result["resumeTriggers"] = self.triggers.model_dump(by_alias=True)