pub struct CmmnCaseInstanceStatus {Show 15 fields
pub id: Uuid,
pub cmmn_case_path: Option<Option<String>>,
pub cmmn_version: Option<Option<i64>>,
pub business_key: Option<Option<String>>,
pub created_at: String,
pub job_status: Option<Option<String>>,
pub updated_at: String,
pub case_state: Option<Option<CmmnCaseState>>,
pub lifecycle: Option<Option<Box<CmmnCaseLifecycle>>>,
pub completable: bool,
pub instances: Vec<CmmnPlanItemInstance>,
pub variables: HashMap<String, Value>,
pub waiting: Vec<CmmnWaitingItem>,
pub incidents: Vec<CmmnIncident>,
pub history_len: i32,
}Expand description
CmmnCaseInstanceStatus : Everything the Case View re-reads on its 1s poll, and nothing else (#1499). The trace is absent by construction, not empty. There is no history property here rather than an emptied one, because a [] a reader could mistake for "this case has done nothing" is the silent shape this codebase keeps unwinding. history_len is how many events the full document carries.
Fields§
§id: Uuid§cmmn_case_path: Option<Option<String>>§cmmn_version: Option<Option<i64>>§business_key: Option<Option<String>>§created_at: String§job_status: Option<Option<String>>§updated_at: StringBest-effort "last touched", through the same fallback chain getBpmnInstanceStatus uses and for the same reason: cmmn_case_status has no per-write updated_at column, only a created_at set once on insert.
case_state: Option<Option<CmmnCaseState>>null in the window between the job being pushed and its first step committing.
lifecycle: Option<Option<Box<CmmnCaseLifecycle>>>§completable: boolcase-level completable, feeding ${cmmn:isStageCompletable()}
instances: Vec<CmmnPlanItemInstance>§variables: HashMap<String, Value>§waiting: Vec<CmmnWaitingItem>§incidents: Vec<CmmnIncident>§history_len: i32case.history.length in the full document. Reported so a client can tell "no trace here" from "no trace yet" without fetching it.
Implementations§
Source§impl CmmnCaseInstanceStatus
impl CmmnCaseInstanceStatus
Sourcepub fn new(
id: Uuid,
created_at: String,
updated_at: String,
completable: bool,
instances: Vec<CmmnPlanItemInstance>,
variables: HashMap<String, Value>,
waiting: Vec<CmmnWaitingItem>,
incidents: Vec<CmmnIncident>,
history_len: i32,
) -> CmmnCaseInstanceStatus
pub fn new( id: Uuid, created_at: String, updated_at: String, completable: bool, instances: Vec<CmmnPlanItemInstance>, variables: HashMap<String, Value>, waiting: Vec<CmmnWaitingItem>, incidents: Vec<CmmnIncident>, history_len: i32, ) -> CmmnCaseInstanceStatus
Everything the Case View re-reads on its 1s poll, and nothing else (#1499). The trace is absent by construction, not empty. There is no history property here rather than an emptied one, because a [] a reader could mistake for "this case has done nothing" is the silent shape this codebase keeps unwinding. history_len is how many events the full document carries.