05-28-2014 10:43 PM
05-29-2014 02:49 AM
Question 1 : Is the Business Key unique among all process instances running/completed/suspended, etc?
/**
* Starts a new process instance in the latest version of the process
* definition with the given key.
*
* A business key can be provided to associate the process instance with a
* certain identifier that has a clear business meaning. For example in an
* order process, the business key could be an order id. This business key can
* then be used to easily look up that process instance , see
* {@link ProcessInstanceQuery#processInstanceBusinessKey(String)}. Providing
* such a business key is definitely a best practice.
*
* Note that a business key MUST be unique for the given process definition.
* Process instance from different process definition are allowed to have the
* same business key.
*
* The combination of processdefinitionKey-businessKey must be unique.
*
* @param processDefinitionKey
* key of process definition, cannot be null.
* @param businessKey
* a key that uniquely identifies the process instance in the context
* or the given process definition.
* @throws ActivitiObjectNotFoundException
* when no process definition is deployed with the given key.
*/
ProcessInstance startProcessInstanceByKey(String processDefinitionKey, String businessKey);
but this behavior has changed in 5.15Question 2 : I am making a following query :
/**
* Executes the query and returns the resulting entity or null if no
* entity matches the query criteria.
* @throws ActivitiException when the query results in more than one
* entities.
*/
U singleResult();
Question 3 : Among all running process instances a given user tasks’s ID returned by tasks.getId() would always be the same, is this the current understanding? Does this mean, this is actually a task design db id?task.getId() - returns unique id of the task. (Unique means only one in the process engine.)
/** DB id of the task. */
String getId();
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.