Skip to content

Add support for multiple resume triggers #57

@cristipufu

Description

@cristipufu

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)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions