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 cdisc_rules_engine/utilities/jsonata_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def execute_jsonata_rule(
.get("params", {})
.get("message"),
status=(
ExecutionStatus.SUCCESS.value
ExecutionStatus.ISSUE_REPORTED.value
if results
else ExecutionStatus.EXECUTION_ERROR.value
),
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_utilities/test_jsonata_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from cdisc_rules_engine.dataset_builders.jsonata_dataset_builder import (
add_json_pointer_paths,
)
from cdisc_rules_engine.enums.execution_status import ExecutionStatus
from cdisc_rules_engine.exceptions.custom_exceptions import (
MissingDataError,
RuleExecutionError,
Expand Down Expand Up @@ -50,7 +51,7 @@ class TestJSONataProcessor(TestCase):
}
expected = [
{
"executionStatus": "success",
"executionStatus": ExecutionStatus.ISSUE_REPORTED.value,
"dataset": None,
"domain": None,
"variables": ["row", "A", "B"],
Expand Down
Loading