Rename consumption to consumption started for consistency

This commit is contained in:
shamoon 2024-01-01 07:57:19 -08:00
parent 9f1dcf9023
commit 8b2d585c0b
4 changed files with 7 additions and 7 deletions

View File

@ -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:

View File

@ -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,

View File

@ -357,7 +357,7 @@ class Migration(migrations.Migration):
"type",
models.PositiveIntegerField(
choices=[
(1, "Consumption"),
(1, "Consumption Started"),
(2, "Document Added"),
(3, "Document Updated"),
],

View File

@ -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")