#### {{getTitle()}}

@if (object?.id) { ID: {{object.id}} }

##

Trigger Workflow On:

@for (trigger of object?.triggers; track trigger; let i = $index){
}

##

Apply Actions:

@for (action of object?.actions; track action; let i = $index){
}
@if (formGroup.get('type').value === WorkflowTriggerType.Scheduled) {

Set scheduled trigger offset and which date field to use.

@if (formGroup.get('schedule_date_field').value === 'custom_field') {
}
@if (formGroup.get('schedule_is_recurring').value === true) { }
}

Trigger for documents that match all filters specified below.

@if (formGroup.get('type').value === WorkflowTriggerType.Consumption) { } @if (formGroup.get('type').value === WorkflowTriggerType.DocumentAdded || formGroup.get('type').value === WorkflowTriggerType.DocumentUpdated || formGroup.get('type').value === WorkflowTriggerType.Scheduled) { @if (matchingPatternRequired(formGroup)) { } @if (matchingPatternRequired(formGroup)) { } }
@if (formGroup.get('type').value === WorkflowTriggerType.DocumentAdded || formGroup.get('type').value === WorkflowTriggerType.DocumentUpdated || formGroup.get('type').value === WorkflowTriggerType.Scheduled) {
Advanced Filters

@if (getFiltersFormArray(formGroup).length === 0) {

No advanced workflow filters defined.

} @for (filter of getFiltersFormArray(formGroup).controls; track filter; let filterIndex = $index) {
- @if (isTagsFilter(filter.get('type').value)) { } @else if ( isCustomFieldQueryFilter(filter.get('type').value) ) { @if (!isCustomFieldQueryValid(filter)) {
  Complete the custom field query configuration.
  } } @else { }
}

}
@switch(formGroup.get('type').value) { @case (WorkflowActionType.Assignment) {
Assign view permissions
Users:
Groups:
Assign edit permissions
Users:
Groups:
Edit permissions also grant viewing permissions
} @case (WorkflowActionType.Removal) {

###### Remove tags

###### Remove correspondents

###### Remove document types

###### Remove storage paths

###### Remove custom fields

###### Remove owners

###### Remove permissions

View permissions
Users:
Groups:
Edit permissions
Users:
Groups:
Edit permissions also grant viewing permissions
} @case (WorkflowActionType.Email) {
} @case (WorkflowActionType.Webhook) {
@if (formGroup.get('webhook').value['use_params']) { } @else { }
} }