Workflow administration (IRPCWorkflowsAdmin)
Administers workflows: reads their full definitions with states and transitions, and adds, modifies and removes them.
Use this interface to add, modify and delete workflows in a vault.
| gRPC service | MFiles.IRPCWorkflowsAdmin |
|---|---|
| Book and level | Administration API, specialized |
| Methods | 5 |
| Proto file | mfiles/IRPCWorkflowsAdmin.proto |
Overview
This is the administrator's side of workflows. M-Files Admin calls it; applications that move objects through workflows read them with GetWorkflowsForClient and GetWorkflowStatesAndTransitions, which need no special rights and return what the caller may do (see Workflows).
| Vault API (read side) | This service | |
|---|---|---|
| Data | names, states and the transitions the user may take | WorkflowAdmin: states with their actions and conditions, transitions with their permissions, triggers and signatures, the workflow ACL, aliases and diagram layout |
| Rights | none | read_all_metadata_structure to read, manage_workflows to write |
- Session and rights. Every method requires a vault session.
GetWorkflows needs the vault right
read_all_metadata_structure(a normal user gets "Access denied."). The write methods needmanage_workflowsandlicense_allows_modifications. Setting or changing VBScript code in states and transitions also needs a code-execution right (see AddWorkflow). - Calls: GetWorkflows, then AddWorkflow or ModifyWorkflow with a complete WorkflowAdmin, and RemoveWorkflow or RemoveWorkflows.
- New states and transitions get negative placeholder IDs in the request (-1, -2, ...); transitions refer to new states by these placeholders. The response contains the workflow as stored, with real IDs.
- Metadata structure version. Every successful add, modify and remove increments the vault's metadata
version when it commits; clients that cache workflows reload them. The methods do not send the
mfiles-metadata-version-bintrailer; see Metadata structure version and caching.
Methods
| Method | Summary | Facts |
|---|---|---|
| AddWorkflow | Creates a workflow with its states and transitions. | admin session |
| GetWorkflows | Gets the full administrative definitions of all workflows. | admin session |
| ModifyWorkflow | Saves a changed workflow with its states and transitions. | admin session |
| RemoveWorkflow | Deletes a workflow with its states and transitions. | admin session |
| RemoveWorkflows | Deletes several workflows in one transaction. | admin session |