workflow_list()
Returns the workflows a user may start, via wfm.GetWorkflowList.
1. Signature
-
Sync
-
Async
ecm.workflow.workflow_list(
user: ECMOrganisationObjectIdLike,
client_type: str | ECMClientType,
organisation: str | ECMOrganisation | None = None,
) -> list[ECMWorkflow]
await ecm.workflow.workflow_list(
user: ECMOrganisationObjectIdLike,
client_type: str | ECMClientType,
organisation: str | ECMOrganisation | None = None,
) -> list[ECMWorkflow]
2. Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
— |
The workflow-organisation user — not the security user GUID. Look it up via |
|
|
— |
Client type as an |
|
|
|
Organisation as a GUID or |
3. Return value
A list of ECMWorkflow objects. Empty list when the user may start no workflows.
3.1. Data model
ECMWorkflow-
-
family_id(str) — GUID of the workflow family; this is the value passed asWorkflowIdwhen starting -
id(str) — GUID of the concrete workflow model -
name(str) — display / instance name -
model_name(str) — name of the workflow model; basis for name-based resolution -
description(str) — description of the model -
icon_id(int) — icon ID of the model
-
4. Errors
-
ECMNotFoundException— a client-type name does not exist -
ECMWrongStateException— a client-type name is ambiguous
5. Example
# client type by name; organisation = active organisation
for wf in ecm.workflow.workflow_list(user, "#OSECM_Client#"):
print(wf.model_name, wf.family_id)
6. See also
-
client_types() — provides
client_type -
workflow_by_name() — resolve a workflow by model name
-
start_process() — start a workflow