Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ object CommonRestrictions {

/**
* Id provided by the runtime identifying the process instance.
*
* In the meta of a task, the value is the same as
* [dev.bpmcrafters.processengineapi.process.ProcessInformation.instanceId] returned when that process
* instance was started. An engine which uses a different value in one of the two places has a bug.
*/
const val PROCESS_INSTANCE_ID = "processInstanceId"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ package dev.bpmcrafters.processengineapi.process
data class ProcessInformation(
/**
* Reference to the instance.
*
* When an engine puts [dev.bpmcrafters.processengineapi.CommonRestrictions.PROCESS_INSTANCE_ID] into the
* meta of a task of this instance, it is the same value. A caller can rely on that to match a delivered
* task to the process instance it started. An engine which uses a different value in one of the two places
* has a bug.
*/
val instanceId: String,
/**
Expand Down