Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/uipath-platform/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-platform"
version = "0.2.31"
version = "0.2.32"
description = "HTTP client library for programmatic access to UiPath Platform"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class InvokeProcess(BaseModel):
process_folder_path: str | None = None
process_folder_key: str | None = None
input_arguments: dict[str, Any] | None
entry_point_path: str | None = None
attachments: list[Attachment] | None = None


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ async def _handle_job_trigger(
attachments=value.attachments,
folder_path=value.process_folder_path,
folder_key=value.process_folder_key,
entry_point_path=value.entry_point_path,
)
if not job:
raise Exception("Failed to invoke process")
Expand Down
33 changes: 33 additions & 0 deletions packages/uipath-platform/tests/services/test_hitl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,39 @@ async def test_create_resume_trigger_invoke_process(
attachments=None,
folder_path=invoke_process.process_folder_path,
folder_key=None,
entry_point_path=None,
)

@pytest.mark.anyio
async def test_create_resume_trigger_invoke_process_entry_point_path(
self,
setup_test_env: None,
) -> None:
"""A suspending caller can pick which entry point of the process it starts."""
invoke_process = InvokeProcess(
name="TestProcess",
process_folder_path="/test/path",
input_arguments={"key": "value"},
entry_point_path="content/functions/get-purchase-order.ts",
)

mock_job = Job(
id=1234,
key="test-job-key",
folder_key="d0e09040-5997-44e1-93b7-4087689521b7",
)
mock_invoke = AsyncMock(return_value=mock_job)

with patch(
"uipath.platform.orchestrator._processes_service.ProcessesService.invoke_async",
new=mock_invoke,
) as mock_process_invoke_async:
processor = UiPathResumeTriggerCreator()
await processor.create_trigger(invoke_process)

assert (
mock_process_invoke_async.call_args.kwargs["entry_point_path"]
== "content/functions/get-purchase-order.ts"
)

@pytest.mark.anyio
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath-platform/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/uipath/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading