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)