Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add support for multiple resume triggers #57

Copy link
Copy link
@cristipufu

Description

@cristipufu
Issue body actions

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.