Add StellaOps.Workflow engine: 14 libraries, WebService, 8 test projects

Extract product-agnostic workflow engine from Ablera.Serdica.Workflow into
standalone StellaOps.Workflow.* libraries targeting net10.0.

Libraries (14):
- Contracts, Abstractions (compiler, decompiler, expression runtime)
- Engine (execution, signaling, scheduling, projections, hosted services)
- ElkSharp (generic graph layout algorithm)
- Renderer.ElkSharp, Renderer.ElkJs, Renderer.Msagl, Renderer.Svg
- Signaling.Redis, Signaling.OracleAq
- DataStore.MongoDB, DataStore.PostgreSQL, DataStore.Oracle

WebService: ASP.NET Core Minimal API with 22 endpoints

Tests (8 projects, 109 tests pass):
- Engine.Tests (105 pass), WebService.Tests (4 E2E pass)
- Renderer.Tests, DataStore.MongoDB/Oracle/PostgreSQL.Tests
- Signaling.Redis.Tests, IntegrationTests.Shared

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-03-20 19:14:44 +02:00
parent e56f9a114a
commit f5b5f24d95
422 changed files with 85428 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
{
"schemaVersion": "serdica.workflow.definition/v1",
"workflowName": "PolicyRouting",
"workflowVersion": "1.0.0",
"displayName": "Policy Routing Example",
"workflowRoles": ["DBA"],
"start": {
"initializeStateExpression": {
"$type": "object",
"properties": [
{ "name": "policyId", "expression": { "$type": "path", "path": "start.policyId" } },
{ "name": "annexType", "expression": { "$type": "path", "path": "start.annexType" } },
{ "name": "policyExistsOnIPAL", "expression": {
"$type": "function", "functionName": "coalesce",
"arguments": [
{ "$type": "path", "path": "start.policyExistsOnIPAL" },
{ "$type": "boolean", "value": true }
]
}}
]
},
"sequence": {
"steps": [
{
"$type": "decision",
"decisionName": "Policy exists on IPAL?",
"conditionExpression": { "$type": "path", "path": "state.policyExistsOnIPAL" },
"whenTrue": {
"steps": [
{
"$type": "decision",
"decisionName": "Annex Type?",
"conditionExpression": {
"$type": "binary", "operator": "eq",
"left": { "$type": "function", "functionName": "upper", "arguments": [{ "$type": "path", "path": "state.annexType" }] },
"right": { "$type": "string", "value": "BENEF" }
},
"whenTrue": {
"steps": [
{ "$type": "set-state", "stateKey": "route", "valueExpression": { "$type": "string", "value": "BENEFIT_PROCESSING" } },
{ "$type": "complete" }
]
},
"whenElse": {
"steps": [
{
"$type": "decision",
"decisionName": "Is Equipment?",
"conditionExpression": {
"$type": "binary", "operator": "eq",
"left": { "$type": "function", "functionName": "upper", "arguments": [{ "$type": "path", "path": "state.annexType" }] },
"right": { "$type": "string", "value": "ADDEQ" }
},
"whenTrue": {
"steps": [
{ "$type": "set-state", "stateKey": "route", "valueExpression": { "$type": "string", "value": "EQUIPMENT_PROCESSING" } },
{ "$type": "complete" }
]
},
"whenElse": {
"steps": [
{ "$type": "set-state", "stateKey": "route", "valueExpression": { "$type": "string", "value": "COVER_CHANGE" } },
{ "$type": "complete" }
]
}
}
]
}
}
]
},
"whenElse": {
"steps": [
{ "$type": "set-state", "stateKey": "route", "valueExpression": { "$type": "string", "value": "INSIS_PROCESSING" } },
{ "$type": "complete" }
]
}
}
]
}
},
"tasks": []
}