AnsweredAssumed Answered

Most efficient (index backed) reference back to domain model

Question asked by chrisc on Feb 10, 2013
Latest reply on Feb 11, 2013 by jbarrez
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)