Class AIContextMapper
java.lang.Object
ai.aletyx.kogito.addons.adhocsubprocess.storage.jpa.mapper.AIContextMapper
Maps between the domain
AIProcessing.AIContext / AIProcessing.ExecutionRecord
and their JPA entity counterparts.
Node-id collections and name map are packed into the entity's JSON columns;
execution history is mapped to a list of child entities with monotonic
sequenceNum.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AIProcessing.AIContexttoDomain(AIContextEntity entity) static AIContextEntitystatic AIContextEntitytoEntity(AIProcessing.AIContext ctx, AIContextEntity existing)
-
Method Details
-
toEntity
-
toEntity
- Parameters:
existing- pass the current managed entity when updating; null for a fresh insert
-
toDomain
-