Abhitocode opened a new pull request, #2282:
URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2282

   Implements a "find or init" pattern for job indexing:
   
   1. **Added `JobInstanceStorage` interface**: A new interface in 
`data-index-storage-api` supporting instance-based indexing.
   
   2. **Updated `JobEntityStorage`**: The JPA implementation now implements 
`JobInstanceStorage` with the following behavior:
      - When indexing a job, it first checks if a job entity already exists in 
storage
      - If it exists, updates the existing entity with new values while 
preserving existing critical fields (such as `processId` and `rootProcessId` if 
they are already set)
      - If it doesn't exist, creates and persists a new entity
   
   3. **Modified `IndexingService`**: Updated `indexJob()` method to use the 
new interface when available.
   
   
   closes: https://github.com/apache/incubator-kie-issues/issues/2177


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to