Skip to content

Commit ffcc342

Browse files
Merge feat/business-rules-evaluate: say business rules, not DMN
Brings #1912's wording change into the debug PR and rewords the debug docstrings and field descriptions the same way. Literal .dmn file names in examples and tests are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 parents 777b235 + f1d6ea8 commit ffcc342

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎packages/uipath-platform/CLAUDE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Services provide both sync and async variants (e.g., `.invoke()` and `.invoke_as
9696
| `action_center/` | Task management for human-in-the-loop workflows |
9797
| `agenthub/` | System agents and LLM model discovery |
9898
| `automation_tracker/` | Business Transaction Service (BTS) for Process Mining |
99-
| `business_rules/` | DMN business rule runs: deployed rules or undeployed Studio-project DMNs, behind one `run()` |
99+
| `business_rules/` | Business rule runs: rules deployed to Orchestrator, or undeployed rules in a Studio project, behind one `run()` |
100100
| `chat/` | LLM gateway, conversations, throttling |
101101
| `connections/` | External connection management |
102102
| `context_grounding/` | RAG services (DeepRAG, batch RAG, ephemeral indexes) |

‎packages/uipath-platform/src/uipath/platform/business_rules/__init__.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Business Rules service package.
22
3-
Provides the ``BusinessRulesService`` client for running DMN decision models,
4-
either deployed to Orchestrator as UiPath Business Rules or read from a Studio
5-
project, and the Pydantic models for its debug context and results.
3+
Provides the ``BusinessRulesService`` client for running UiPath Business Rules,
4+
either deployed to Orchestrator or read undeployed from a Studio project, and
5+
the Pydantic models for its debug context, results and trace context.
66
"""
77

88
from ._business_rules_service import BusinessRulesService

‎packages/uipath-platform/src/uipath/platform/business_rules/_business_rules_service.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Business Rules service for UiPath Platform.
22
3-
Runs DMN decision models: a business rule deployed to Orchestrator, or an
4-
undeployed DMN read straight from a Studio project.
3+
Runs business rules: a rule deployed to Orchestrator, or an undeployed rule
4+
read straight from a Studio project.
55
"""
66

77
from contextlib import contextmanager
@@ -51,11 +51,11 @@
5151

5252

5353
class BusinessRulesService(FolderContext, BaseService):
54-
"""Service for running UiPath Business Rules (DMN decision models).
54+
"""Service for running UiPath Business Rules.
5555
5656
Each call runs one input against a business rule, named like any other
5757
resource, and returns the decisions it produced. By default the rule
58-
deployed to Orchestrator runs; pass ``debug`` to run an undeployed DMN from
58+
deployed to Orchestrator runs; pass ``debug`` to run an undeployed rule from
5959
a Studio project instead. The caller never picks a service endpoint.
6060
"""
6161

@@ -100,7 +100,7 @@ def run(
100100
inputs absent from it bind to null.
101101
version: The deployed rule version to run; defaults to the active
102102
version. Not used with ``debug``.
103-
debug: Run an undeployed DMN from a Studio project instead of the
103+
debug: Run the undeployed rule from a Studio project instead of the
104104
deployed rule.
105105
decision_names: The decisions to evaluate; defaults to the whole model.
106106
explain: Whether to record condition-level explanations in the trace.
@@ -137,7 +137,7 @@ def run(
137137
for decision in result.decisions:
138138
print(decision.decision_name, decision.outputs)
139139
140-
# An undeployed DMN in a Studio project
140+
# An undeployed rule in a Studio project
141141
from uipath.platform.business_rules import DebugRunContext
142142
143143
result = client.business_rules.run(
@@ -187,7 +187,7 @@ async def run_async(
187187
inputs absent from it bind to null.
188188
version: The deployed rule version to run; defaults to the active
189189
version. Not used with ``debug``.
190-
debug: Run an undeployed DMN from a Studio project instead of the
190+
debug: Run the undeployed rule from a Studio project instead of the
191191
deployed rule.
192192
decision_names: The decisions to evaluate; defaults to the whole model.
193193
explain: Whether to record condition-level explanations in the trace.

‎packages/uipath-platform/src/uipath/platform/business_rules/business_rules.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ class RunMode(str, Enum):
2525

2626

2727
class DebugRunContext(BaseModel):
28-
"""Run an undeployed DMN from a Studio project instead of the deployed rule.
28+
"""Run the undeployed rule from a Studio project instead of the deployed one.
2929
3030
With ``project_id`` the project is read as given. Without it, the service
3131
resolves the project from the running debug job's lineage, which needs
3232
``job_key`` (defaults to ``UIPATH_JOB_KEY``) and ``organization_unit_id``.
3333
"""
3434

3535
project_id: Optional[str] = Field(
36-
default=None, description="The Studio project holding the DMN."
36+
default=None, description="The Studio project holding the rule."
3737
)
3838
file_name: Optional[str] = Field(
3939
default=None,
40-
description="The .dmn file in the project; defaults to the first one.",
40+
description="The rule file in the project; defaults to the first one.",
4141
)
4242
job_key: Optional[str] = Field(
4343
default=None,
@@ -146,7 +146,7 @@ class BusinessRuleRunResult(BaseModel):
146146
)
147147
file_name: Optional[str] = Field(
148148
default=None,
149-
description="The .dmn file actually read, which may differ from the one asked for. Debug mode only.",
149+
description="The rule file actually read, which may differ from the one asked for. Debug mode only.",
150150
)
151151

152152

0 commit comments

Comments
 (0)