Closed tsimsekburgan closed 1 month ago
The recent updates introduce significant changes to the amorphie.workflow
project. Key modifications include adding the ProcessInstanceKey
property to the Instance
class and converting several columns to the JSONB data type. The updates enhance full-text search capabilities and improve error handling in JSON deserialization. Additionally, various database migrations have been implemented, and numerous improvements have been made to workflow state and message publishing logic.
File/Directory | Change Summary |
---|---|
amorphie.workflow.core/Models/Instance.cs |
Added ProcessInstanceKey property to Instance class. |
amorphie.workflow.core/Models/InstanceTransition.cs |
Added column type annotations and imports, adjusted property declarations. |
amorphie.workflow.data/DBContext.cs |
Modified FTS index computed column SQL for InstanceTransition . |
amorphie.workflow.data/Migrations/…MigrationProcessInstanceKey.cs |
Added migration to add ProcessInstanceKey column to Instances table. |
amorphie.workflow.data/Migrations/…MigrationToJsonBData.cs |
Altered column types and computed column SQL in InstanceTransitions table. |
amorphie.workflow.data/Migrations/WorkflowDBContextModelSnapshot.cs |
Added properties and adjusted data types/indexing for Instance , InstanceEvent , and InstanceTransition . |
amorphie.workflow.service/Db/PostTransactionService.cs |
Added logic to set and update ProcessInstanceKey , humanTask.Status , and other properties before publishing messages. |
amorphie.workflow.service/Zeebe/ZeebeCommandService.cs |
Updated PublishMessage to return a long value from response JSON. |
amorphie.workflow.zeebe/Modules/StateManager.cs |
Added handling for X-Zeebe-Process-Instance-Key and adjusted logic for state and HumanTask status transitions. |
amorphie.workflow/Modules/Definition.cs |
Introduced a conditional check before assigning AllowedSuffix . |
amorphie.workflow/Modules/Instance.cs |
Enhanced JSON deserialization with error handling, modified LINQ query conditions, and adjusted logic for state transitions. |
Amidst the code, a change we make,
With keys and states for workflows' sake.
JSONB steps in with structure so sleek,
As tasks and transitions become unique.
The Zeebe hums, the keys align,
In this new flow, our code will shine. 🐰✨
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Issues
8 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.6% Duplication on New Code
Summary by CodeRabbit
New Features
ProcessInstanceKey
to various components for enhanced tracking and status updates.Bug Fixes
AllowedSuffix
.Enhancements
InstanceTransition
.StateManager
.Database Migrations
ProcessInstanceKey
and updated column types and indexing forInstanceTransitions
.