Skip to content

Commit

Permalink
Add concurrency nodes to get available nodes list
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshanWeerasinghe committed Oct 4, 2024
1 parent 3d93a0d commit b5c1600
Show file tree
Hide file tree
Showing 16 changed files with 576 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,14 @@ private void setDefaultNodes() {
.node(NodeKind.PANIC)
.stepOut();
// TODO: Uncomment when concurrency is implemented
// .stepIn(Category.Name.CONCURRENCY)
// .node(NodeKind.TRANSACTION)
this.rootBuilder
.stepIn(Category.Name.CONCURRENCY)
.node(NodeKind.TRANSACTION)
.node(NodeKind.COMMIT)
.node(NodeKind.ROLLBACK)
// .node(NodeKind.LOCK)
// .node(NodeKind.START)
// .stepOut();
.stepOut();
}

private void setStopNode(NonTerminalNode node) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,44 @@
}
]
},
{
"metadata": {
"label": "Concurrency",
"description": "Concurrency nodes"
},
"items": [
{
"metadata": {
"label": "Transaction",
"description": "Handle transaction."
},
"codedata": {
"node": "TRANSACTION"
},
"enabled": true
},
{
"metadata": {
"label": "Commit",
"description": "Commit transaction"
},
"codedata": {
"node": "COMMIT"
},
"enabled": true
},
{
"metadata": {
"label": "Rollback",
"description": "Rollback the transaction"
},
"codedata": {
"node": "ROLLBACK"
},
"enabled": true
}
]
},
{
"metadata": {
"label": "Logging"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,44 @@
}
]
},
{
"metadata": {
"label": "Concurrency",
"description": "Concurrency nodes"
},
"items": [
{
"metadata": {
"label": "Transaction",
"description": "Handle transaction."
},
"codedata": {
"node": "TRANSACTION"
},
"enabled": true
},
{
"metadata": {
"label": "Commit",
"description": "Commit transaction"
},
"codedata": {
"node": "COMMIT"
},
"enabled": true
},
{
"metadata": {
"label": "Rollback",
"description": "Rollback the transaction"
},
"codedata": {
"node": "ROLLBACK"
},
"enabled": true
}
]
},
{
"metadata": {
"label": "Logging"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,44 @@
}
]
},
{
"metadata": {
"label": "Concurrency",
"description": "Concurrency nodes"
},
"items": [
{
"metadata": {
"label": "Transaction",
"description": "Handle transaction."
},
"codedata": {
"node": "TRANSACTION"
},
"enabled": true
},
{
"metadata": {
"label": "Commit",
"description": "Commit transaction"
},
"codedata": {
"node": "COMMIT"
},
"enabled": true
},
{
"metadata": {
"label": "Rollback",
"description": "Rollback the transaction"
},
"codedata": {
"node": "ROLLBACK"
},
"enabled": true
}
]
},
{
"metadata": {
"label": "Logging"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,44 @@
}
]
},
{
"metadata": {
"label": "Concurrency",
"description": "Concurrency nodes"
},
"items": [
{
"metadata": {
"label": "Transaction",
"description": "Handle transaction."
},
"codedata": {
"node": "TRANSACTION"
},
"enabled": true
},
{
"metadata": {
"label": "Commit",
"description": "Commit transaction"
},
"codedata": {
"node": "COMMIT"
},
"enabled": true
},
{
"metadata": {
"label": "Rollback",
"description": "Rollback the transaction"
},
"codedata": {
"node": "ROLLBACK"
},
"enabled": true
}
]
},
{
"metadata": {
"label": "Logging"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,44 @@
}
]
},
{
"metadata": {
"label": "Concurrency",
"description": "Concurrency nodes"
},
"items": [
{
"metadata": {
"label": "Transaction",
"description": "Handle transaction."
},
"codedata": {
"node": "TRANSACTION"
},
"enabled": true
},
{
"metadata": {
"label": "Commit",
"description": "Commit transaction"
},
"codedata": {
"node": "COMMIT"
},
"enabled": true
},
{
"metadata": {
"label": "Rollback",
"description": "Rollback the transaction"
},
"codedata": {
"node": "ROLLBACK"
},
"enabled": true
}
]
},
{
"metadata": {
"label": "Logging"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,44 @@
}
]
},
{
"metadata": {
"label": "Concurrency",
"description": "Concurrency nodes"
},
"items": [
{
"metadata": {
"label": "Transaction",
"description": "Handle transaction."
},
"codedata": {
"node": "TRANSACTION"
},
"enabled": true
},
{
"metadata": {
"label": "Commit",
"description": "Commit transaction"
},
"codedata": {
"node": "COMMIT"
},
"enabled": true
},
{
"metadata": {
"label": "Rollback",
"description": "Rollback the transaction"
},
"codedata": {
"node": "ROLLBACK"
},
"enabled": true
}
]
},
{
"metadata": {
"label": "Logging"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,44 @@
}
]
},
{
"metadata": {
"label": "Concurrency",
"description": "Concurrency nodes"
},
"items": [
{
"metadata": {
"label": "Transaction",
"description": "Handle transaction."
},
"codedata": {
"node": "TRANSACTION"
},
"enabled": true
},
{
"metadata": {
"label": "Commit",
"description": "Commit transaction"
},
"codedata": {
"node": "COMMIT"
},
"enabled": true
},
{
"metadata": {
"label": "Rollback",
"description": "Rollback the transaction"
},
"codedata": {
"node": "ROLLBACK"
},
"enabled": true
}
]
},
{
"metadata": {
"label": "Logging"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,44 @@
}
]
},
{
"metadata": {
"label": "Concurrency",
"description": "Concurrency nodes"
},
"items": [
{
"metadata": {
"label": "Transaction",
"description": "Handle transaction."
},
"codedata": {
"node": "TRANSACTION"
},
"enabled": true
},
{
"metadata": {
"label": "Commit",
"description": "Commit transaction"
},
"codedata": {
"node": "COMMIT"
},
"enabled": true
},
{
"metadata": {
"label": "Rollback",
"description": "Rollback the transaction"
},
"codedata": {
"node": "ROLLBACK"
},
"enabled": true
}
]
},
{
"metadata": {
"label": "Logging"
Expand Down
Loading

0 comments on commit b5c1600

Please sign in to comment.