cancel
Showing results for 
Search instead for 
Did you mean: 

Most efficient (index backed) reference back to domain model

chrisc
Champ in-the-making
Champ in-the-making
We will be running embedded Activiti and will have domain model objects persisted using JDO.

We already have a ProcessParameters object in our domain model that encapsulates the process variables and will act as the link between the Activiti ProcessInstance and the domain model objects.

Our ProcessParameters has a unique ID (long) and I am trying to work out, from the Activiti schema, how I can associate that ID with Activiti's ProcessInstance such that when I perform a query in Activiti to return a ProcessInstance associated with a given ProcessParameters in our domain model the query can take advantage of indexing?

Could 'business key' serve this purpose? - ProcessParameters IDs are unique within our system)
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The business key is indeed meant for this. Every business process typically has a domain object around which the process proceeds.
So yes, that is definitely best practice.