ProcessInstanceQueryDto

Struct ProcessInstanceQueryDto 

Source
pub struct ProcessInstanceQueryDto {
Show 31 fields pub deployment_id: Option<String>, pub process_definition_id: Option<String>, pub process_definition_key: Option<String>, pub process_definition_key_in: Option<Vec<String>>, pub process_definition_key_not_in: Option<Vec<String>>, pub business_key: Option<String>, pub business_key_like: Option<String>, pub case_instance_id: Option<String>, pub super_process_instance: Option<String>, pub sub_process_instance: Option<String>, pub super_case_instance: Option<String>, pub sub_case_instance: Option<String>, pub active: Option<bool>, pub suspended: Option<bool>, pub process_instance_ids: Option<Vec<String>>, pub with_incident: Option<bool>, pub incident_id: Option<String>, pub incident_type: Option<String>, pub incident_message: Option<String>, pub incident_message_like: Option<String>, pub tenant_id_in: Option<Vec<String>>, pub without_tenant_id: Option<bool>, pub process_definition_without_tenant_id: Option<bool>, pub activity_id_in: Option<Vec<String>>, pub root_process_instances: Option<bool>, pub leaf_process_instances: Option<bool>, pub variables: Option<Vec<VariableQueryParameterDto>>, pub variable_names_ignore_case: Option<bool>, pub variable_values_ignore_case: Option<bool>, pub or_queries: Option<Vec<ProcessInstanceQueryDto>>, pub sorting: Option<Vec<ProcessInstanceQueryDtoSorting>>,
}
Expand description

ProcessInstanceQueryDto : A process instance query which defines a group of process instances

Fields§

§deployment_id: Option<String>

Filter by the deployment the id belongs to.

§process_definition_id: Option<String>

Filter by the process definition the instances run on.

§process_definition_key: Option<String>

Filter by the key of the process definition the instances run on.

§process_definition_key_in: Option<Vec<String>>

Filter by a list of process definition keys. A process instance must have one of the given process definition keys. Must be a JSON array of Strings.

§process_definition_key_not_in: Option<Vec<String>>

Exclude instances by a list of process definition keys. A process instance must not have one of the given process definition keys. Must be a JSON array of Strings.

§business_key: Option<String>

Filter by process instance business key.

§business_key_like: Option<String>

Filter by process instance business key that the parameter is a substring of.

§case_instance_id: Option<String>

Filter by case instance id.

§super_process_instance: Option<String>

Restrict query to all process instances that are sub process instances of the given process instance. Takes a process instance id.

§sub_process_instance: Option<String>

Restrict query to all process instances that have the given process instance as a sub process instance. Takes a process instance id.

§super_case_instance: Option<String>

Restrict query to all process instances that are sub process instances of the given case instance. Takes a case instance id.

§sub_case_instance: Option<String>

Restrict query to all process instances that have the given case instance as a sub case instance. Takes a case instance id.

§active: Option<bool>

Only include active process instances. Value may only be true, as false is the default behavior.

§suspended: Option<bool>

Only include suspended process instances. Value may only be true, as false is the default behavior.

§process_instance_ids: Option<Vec<String>>

Filter by a list of process instance ids. Must be a JSON array of Strings.

§with_incident: Option<bool>

Filter by presence of incidents. Selects only process instances that have an incident.

§incident_id: Option<String>

Filter by the incident id.

§incident_type: Option<String>

Filter by the incident type. See the User Guide for a list of incident types.

§incident_message: Option<String>

Filter by the incident message. Exact match.

§incident_message_like: Option<String>

Filter by the incident message that the parameter is a substring of.

§tenant_id_in: Option<Vec<String>>

Filter by a list of tenant ids. A process instance must have one of the given tenant ids. Must be a JSON array of Strings.

§without_tenant_id: Option<bool>

Only include process instances which belong to no tenant. Value may only be true, as false is the default behavior.

§process_definition_without_tenant_id: Option<bool>

Only include process instances which process definition has no tenant id.

§activity_id_in: Option<Vec<String>>

Filter by a list of activity ids. A process instance must currently wait in a leaf activity with one of the given activity ids.

§root_process_instances: Option<bool>

Restrict the query to all process instances that are top level process instances.

§leaf_process_instances: Option<bool>

Restrict the query to all process instances that are leaf instances. (i.e. don’t have any sub instances)

§variables: Option<Vec<VariableQueryParameterDto>>

A JSON array to only include process instances that have variables with certain values. The array consists of objects with the three properties name, operator and value. name (String) is the variable name, operator (String) is the comparison operator to be used and value the variable value. The value may be String, Number or Boolean. Valid operator values are: eq - equal to; neq - not equal to; gt - greater than; gteq - greater than or equal to; lt - lower than; lteq - lower than or equal to; like.

§variable_names_ignore_case: Option<bool>

Match all variable names in this query case-insensitively. If set to true variableName and variablename are treated as equal.

§variable_values_ignore_case: Option<bool>

Match all variable values in this query case-insensitively. If set to true variableValue and variablevalue are treated as equal.

§or_queries: Option<Vec<ProcessInstanceQueryDto>>

A JSON array of nested process instance queries with OR semantics. A process instance matches a nested query if it fulfills at least one of the query’s predicates. With multiple nested queries, a process instance must fulfill at least one predicate of each query (Conjunctive Normal Form). All process instance query properties can be used except for: sorting See the User guide for more information about OR queries.

§sorting: Option<Vec<ProcessInstanceQueryDtoSorting>>

Apply sorting of the result

Implementations§

Source§

impl ProcessInstanceQueryDto

Source

pub fn new() -> ProcessInstanceQueryDto

A process instance query which defines a group of process instances

Trait Implementations§

Source§

impl Clone for ProcessInstanceQueryDto

Source§

fn clone(&self) -> ProcessInstanceQueryDto

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProcessInstanceQueryDto

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ProcessInstanceQueryDto

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ProcessInstanceQueryDto

Source§

fn eq(&self, other: &ProcessInstanceQueryDto) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ProcessInstanceQueryDto

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ProcessInstanceQueryDto

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Err = <U as TryFrom<T>>::Err

Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,