diff --git a/docs/usage.md b/docs/usage.md index 69769f9de..7e8db4acf 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -274,13 +274,13 @@ fields and permissions, which will be merged. Currently, there are three events that correspond to workflow trigger 'types': -1. **Consumption**: _before_ a document is consumed, so events can include filters by source (mail, consumption +1. **Consumption Started**: _before_ a document is consumed, so events can include filters by source (mail, consumption folder or API), file path, file name, mail rule -2. **Added**: _after_ a document is added. At this time, file path and source information is no longer available, +2. **Document Added**: _after_ a document is added. At this time, file path and source information is no longer available, but the document content has been extracted and metadata such as document type, tags, etc. have been set, so these can now be used for filtering. -3. **Updated**: when a document is updated. Similar to 'added' events, triggers can include filtering by content matching, tags, - doc type, or correspondent. +3. **Document Updated**: when a document is updated. Similar to 'added' events, triggers can include filtering by content matching, + tags, doc type, or correspondent. The following flow diagram illustrates the three trigger types: diff --git a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts index fbf5c9bbc..793c71025 100644 --- a/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts +++ b/src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts @@ -50,7 +50,7 @@ export const DOCUMENT_SOURCE_OPTIONS = [ export const WORKFLOW_TYPE_OPTIONS = [ { id: WorkflowTriggerType.Consumption, - name: $localize`Consumption`, + name: $localize`Consumption Started`, }, { id: WorkflowTriggerType.DocumentAdded, diff --git a/src/documents/migrations/1044_workflow_workflowaction_workflowtrigger_and_more.py b/src/documents/migrations/1044_workflow_workflowaction_workflowtrigger_and_more.py index 9d64429c6..e593d9327 100644 --- a/src/documents/migrations/1044_workflow_workflowaction_workflowtrigger_and_more.py +++ b/src/documents/migrations/1044_workflow_workflowaction_workflowtrigger_and_more.py @@ -357,7 +357,7 @@ class Migration(migrations.Migration): "type", models.PositiveIntegerField( choices=[ - (1, "Consumption"), + (1, "Consumption Started"), (2, "Document Added"), (3, "Document Updated"), ], diff --git a/src/documents/models.py b/src/documents/models.py index 638295ae9..b943fa2b5 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -899,7 +899,7 @@ class WorkflowTrigger(models.Model): FUZZY = MatchingModel.MATCH_FUZZY, _("Fuzzy word") class WorkflowTriggerType(models.IntegerChoices): - CONSUMPTION = 1, _("Consumption") + CONSUMPTION = 1, _("Consumption Started") DOCUMENT_ADDED = 2, _("Document Added") DOCUMENT_UPDATED = 3, _("Document Updated")