Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- org: pasindufernando
project: order-management-automation
local: true
Comment on lines +1 to +3
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[workspace]
title = "order-management-automation"
packages = ["orderprocessingautomation"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Ballerina generates this directory during the compilation of a package.
# It contains compiler-generated artifacts and the final executable if this is an application package.
target/

# Ballerina maintains the compiler-generated source code here.
# Remove this if you want to commit generated sources.
generated/

# Contains configuration values used during development time.
# See https://ballerina.io/learn/provide-values-to-configurable-variables/ for more details.
Config.toml

# File used to enable development-time tracing.
# This should not be committed to version control.
trace_enabled.bal
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[package]
org = "wso2"
name = "orderprocessingautomation"
version = "0.1.0"
distribution = "2201.13.3"
title = "OrderProcessingAutomation"

[build-options]
sticky = true

[[tool.persist]]
id = "orderprocessingautomation.ordersdb"
targetModule = "orderprocessingautomation.ordersdb"
filePath = "persist/ordersDB/model.bal"
options.datastore = "mysql"
options.eagerLoading = true
options.withInitParams = true

[[dependency]]
org = "ballerina"
name = "tool.persist"
version = "1.9.1"
Comment on lines +19 to +22

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify tool.persist version consistency between manifests

echo "=== Ballerina.toml declared version ==="
rg -A1 'name = "tool.persist"' integrator-default-profile/samples/order-management-automation/orderprocessingautomation/Ballerina.toml

echo "=== Dependencies.toml resolved version ==="
rg -A1 'name = "tool.persist"' integrator-default-profile/samples/order-management-automation/orderprocessingautomation/Dependencies.toml

Repository: wso2/integration-samples

Length of output: 325


Update tool.persist version in Ballerina.toml to match the resolved version.

The declared version is 1.9.1, but Dependencies.toml resolved to 1.9.2. Update Ballerina.toml line 22 to version = "1.9.2" for consistency and reproducibility.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@integrator-default-profile/samples/order-management-automation/orderprocessingautomation/Ballerina.toml`
around lines 19 - 22, The version field for the tool.persist dependency in the
dependency block does not match the resolved version in Dependencies.toml.
Update the version property of the tool.persist dependency from "1.9.1" to
"1.9.2" to ensure consistency between Ballerina.toml and the actual resolved
dependency version, which improves reproducibility and prevents version
mismatches.


[[platform.java21.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "persist.sql-native"
version = "1.7.2"
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
# AUTO-GENERATED FILE. DO NOT MODIFY.

# This file is auto-generated by Ballerina for managing dependency versions.
# It should not be modified by hand.

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.13.3-20260411-175200-6a2a1e46"

[[package]]
org = "ballerina"
name = "crypto"
version = "2.10.1"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "data.jsondata"
version = "1.1.3"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"}
]

[[package]]
org = "ballerina"
name = "email"
version = "2.13.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "mime"},
{org = "ballerina", name = "task"}
]
modules = [
{org = "ballerina", packageName = "email", moduleName = "email"}
]

[[package]]
org = "ballerina"
name = "io"
version = "1.8.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"}
]

[[package]]
org = "ballerina"
name = "jballerina.java"
version = "0.0.0"
modules = [
{org = "ballerina", packageName = "jballerina.java", moduleName = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.__internal"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"}
]

[[package]]
org = "ballerina"
name = "lang.int"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.__internal"},
{org = "ballerina", name = "lang.object"}
]

[[package]]
org = "ballerina"
name = "lang.object"
version = "0.0.0"

[[package]]
org = "ballerina"
name = "lang.value"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "log"
version = "2.17.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"},
{org = "ballerina", name = "observe"}
]
modules = [
{org = "ballerina", packageName = "log", moduleName = "log"}
]

[[package]]
org = "ballerina"
name = "mime"
version = "2.12.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.int"},
{org = "ballerina", name = "log"}
]

[[package]]
org = "ballerina"
name = "observe"
version = "1.7.1"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "persist"
version = "1.7.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
modules = [
{org = "ballerina", packageName = "persist", moduleName = "persist"}
]

[[package]]
org = "ballerina"
name = "random"
version = "1.7.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "sql"
version = "1.19.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"},
{org = "ballerina", name = "time"}
]
modules = [
{org = "ballerina", packageName = "sql", moduleName = "sql"}
]

[[package]]
org = "ballerina"
name = "task"
version = "2.7.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "time"
version = "2.8.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
modules = [
{org = "ballerina", packageName = "time", moduleName = "time"}
]

[[package]]
org = "ballerinai"
name = "observe"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "observe"}
]

[[package]]
org = "ballerinax"
name = "cdc"
version = "1.3.0"
dependencies = [
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "data.jsondata"},
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "log"},
{org = "ballerinai", name = "observe"}
]

[[package]]
org = "ballerinax"
name = "mysql"
version = "1.18.0"
dependencies = [
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "random"},
{org = "ballerina", name = "sql"},
{org = "ballerina", name = "time"},
{org = "ballerinax", name = "cdc"}
]
modules = [
{org = "ballerinax", packageName = "mysql", moduleName = "mysql"}
]

[[package]]
org = "ballerinax"
name = "mysql.driver"
version = "1.8.1"
modules = [
{org = "ballerinax", packageName = "mysql.driver", moduleName = "mysql.driver"}
]

[[package]]
org = "ballerinax"
name = "persist.sql"
version = "1.7.4"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "persist"},
{org = "ballerina", name = "sql"},
{org = "ballerina", name = "time"}
]
modules = [
{org = "ballerinax", packageName = "persist.sql", moduleName = "persist.sql"}
]

[[package]]
org = "wso2"
name = "orderprocessingautomation"
version = "0.1.0"
dependencies = [
{org = "ballerina", name = "email"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "persist"},
{org = "ballerina", name = "sql"},
{org = "ballerina", name = "time"},
{org = "ballerinax", name = "mysql"},
{org = "ballerinax", name = "mysql.driver"},
{org = "ballerinax", name = "persist.sql"}
]
modules = [
{org = "wso2", packageName = "orderprocessingautomation", moduleName = "orderprocessingautomation"},
{org = "wso2", packageName = "orderprocessingautomation", moduleName = "orderprocessingautomation.ordersdb"}
]

[[tool]]
id = "persist"
org = "ballerina"
name = "tool.persist"
version = "1.9.2"

Loading