IRPCObjectOperations.GetMultipleWorkflowStatesAndTransitions

View as Markdown

Vault API / core read session or assertion idempotent returns metadata structure version

Gets the states and transitions of several workflows in one call, in a compressed binary form.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/GetMultipleWorkflowStatesAndTransitions
HTTP (mf-http-grpc)POST /grpc/v1/get-multiple-workflow-states-and-transitions
RequestGetMultipleWorkflowStatesAndTransitionsRequest
ResponseGetMultipleWorkflowStatesAndTransitionsResponse
Book and levelVault API, core
Kindread
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentyes
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

Used by M-Files clients to fill their caches. The results are serialized and possibly compressed byte arrays, not protobuf messages; use GetWorkflowStatesAndTransitions instead.

Request: GetMultipleWorkflowStatesAndTransitionsRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
workflow_ids[]repeated int32The IDs of the workflows.
current_stateTypedValueIf the pointer is not unset, it points to a struct that specifies the current state of the object(s). If the pointer is unset, the bSelectable flags of all returned states will be true because transition rights cannot be checked in that case.
current_state.is_null_valueboolTrue if the value is empty. data is then unset.
current_state.typeDatatypeThe data type of the value.
current_state.dataTypedValueUnionThe value, in the member that matches type. Unset for an empty value.
current_state.data.textstring (oneof data)The value of DATATYPE_TEXT.
current_state.data.integerint32 (oneof data)The value of DATATYPE_INTEGER.
current_state.data.real_numberdouble (oneof data)The value of DATATYPE_REAL_NUMBER.
current_state.data.decimal_numberstring (oneof data)Fixed precision number.
current_state.data.dategoogle.protobuf.Timestamp (oneof data)The value of DATATYPE_DATE: midnight UTC of the date.
current_state.data.timegoogle.protobuf.Timestamp (oneof data)Time.
current_state.data.timestampgoogle.protobuf.Timestamp (oneof data)The value of DATATYPE_TIMESTAMP, in UTC.
current_state.data.booleanbool (oneof data)The value of DATATYPE_BOOLEAN.
current_state.data.lookupLookup (oneof data)The value of DATATYPE_LOOKUP: one value list item or object.
current_state.data.multi_select_lookupMultiSelectLookup (oneof data)The value of DATATYPE_MULTI_SELECT_LOOKUP: any number of value list items or objects.
current_state.data.integer64int64 (oneof data)Integer (8 bytes).
current_state.data.filetimegoogle.protobuf.Timestamp (oneof data)FILETIME (64-bit integer).
current_state.data.multi_line_textstring (oneof data)The value of DATATYPE_MULTI_LINE_TEXT.
current_state.data.aclAccessControlList (oneof data)Access Control List.

Response: GetMultipleWorkflowStatesAndTransitionsResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
statesbytesStates. Compressed, unless pulUncompressedStatesLength is -1.
uncompressed_states_lengthuint32Receives the length of the uncompressed data. Set to -1 if pbytesData is not compressed.
transitionsbytesTransitions. Compressed, unless pulUncompressedTransitionsLength is -1.
uncompressed_transitions_lengthuint32Receives the length of the uncompressed data. Set to -1 if pbytesData is not compressed.