Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VACMS-19098: VBA Facility Workflow Notifications #20109

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
395d944
VACMS-19098: Adds new AdvancedQueue processor plugin for Content Work…
dsasser Dec 9, 2024
6ca1313
VACMS-19098: Adds new direct recipient option to VA.gov AdvancedQueue…
dsasser Dec 9, 2024
1471149
VACMS-19098: Adds eca_workflow module to the system.
dsasser Dec 10, 2024
e839ffa
VACMS-19098: Adds new queue for workflow content notifications.
dsasser Dec 10, 2024
ce3fb56
VACMS-19098: Adds new message template for VBA Facility draft content…
dsasser Dec 10, 2024
4409c28
VACMS-19098: Adds new ECA workflow that triggers draft notifcations f…
dsasser Dec 10, 2024
37248f4
VACMS-19098: Theme changes for rendering Content Workflow: VBA Facili…
dsasser Dec 10, 2024
3dddd6b
VACMS-19098: Renames field_field_target_node_path to field_target_nod…
dsasser Dec 16, 2024
b5cbc51
VACMS-19098: Adds vba_facility_draft_content to mailsystem configurat…
dsasser Dec 16, 2024
5588067
VACMS-19098: Turns on the VBA Facility workflow ECA model.
dsasser Dec 16, 2024
eabf1aa
Merge remote-tracking branch 'origin/main' into VACMS-19098-vba-workf…
dsasser Dec 16, 2024
1f21e84
VACMS-19098: Correct faulty return comment.
dsasser Dec 17, 2024
8f8847a
Merge remote-tracking branch 'origin/main' into VACMS-19098-vba-workf…
dsasser Dec 17, 2024
41a5ed6
Update config/sync/language/en/message.template.vba_facility_draft_co…
dsasser Dec 18, 2024
c2a813a
Merge branch 'main' into VACMS-19098-vba-workflow-eca-notifications
dsasser Dec 18, 2024
3308e61
Merge branch 'main' into VACMS-19098-vba-workflow-eca-notifications
omahane Dec 19, 2024
04bc527
I missed this comma change, too.
omahane Dec 19, 2024
75b209d
Merge branch 'main' into VACMS-19098-vba-workflow-eca-notifications
omahane Dec 19, 2024
50e53b8
VACMS-19098: Add the 'reject' portion of the email body.
dsasser Dec 20, 2024
f19c6e5
Merge branch 'main' into VACMS-19098-vba-workflow-eca-notifications
dsasser Jan 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions config/sync/advancedqueue.advancedqueue_queue.content_worfkow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
uuid: 60db9e4b-4688-4ec6-ac1d-3038672ec705
langcode: en
status: true
dependencies: { }
id: content_worfkow
label: 'Content Worfkow'
backend: database
backend_configuration:
lease_time: 30
processor: cron
processing_time: 10
locked: false
stop_when_empty: true
threshold:
type: 2
limit: 30
state: all
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
uuid: df069181-a709-497a-89bf-c20e6c48cc41
langcode: en
status: true
dependencies:
config:
- field.field.message.vba_facility_draft_content.field_last_updated_by_editor
- field.field.message.vba_facility_draft_content.field_target_node_path
- field.field.message.vba_facility_draft_content.field_target_node_title
- message.template.vba_facility_draft_content
id: message.vba_facility_draft_content.default
targetEntityType: message
bundle: vba_facility_draft_content
mode: default
content:
created:
type: datetime_timestamp
weight: 4
region: content
settings: { }
third_party_settings: { }
field_last_updated_by_editor:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_target_node_path:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_target_node_title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 3
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
'#group': advanced
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
uuid: 792c292e-e566-4fb0-bf70-e4d15b1986ad
langcode: en
status: true
dependencies:
config:
- field.field.message.vba_facility_draft_content.field_last_updated_by_editor
- field.field.message.vba_facility_draft_content.field_target_node_path
- field.field.message.vba_facility_draft_content.field_target_node_title
- message.template.vba_facility_draft_content
module:
- user
id: message.vba_facility_draft_content.default
targetEntityType: message
bundle: vba_facility_draft_content
mode: default
content:
field_last_updated_by_editor:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
field_target_node_path:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
region: content
partial_0:
settings: { }
third_party_settings: { }
weight: 0
region: content
partial_1:
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
breadcrumbs: true
field_target_node_title: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
uuid: e03aaafc-ade6-49bc-8616-658b95a38e29
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.message.mail_body
- field.field.message.vba_facility_draft_content.field_last_updated_by_editor
- field.field.message.vba_facility_draft_content.field_target_node_path
- field.field.message.vba_facility_draft_content.field_target_node_title
- message.template.vba_facility_draft_content
module:
- layout_builder
- user
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
id: message.vba_facility_draft_content.mail_body
targetEntityType: message
bundle: vba_facility_draft_content
mode: mail_body
content:
partial_1:
weight: 0
region: content
hidden:
breadcrumbs: true
field_last_updated_by_editor: true
field_target_node_path: true
field_target_node_title: true
partial_0: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
uuid: 793ef29a-db3e-47f5-8a04-7352558efa93
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.message.mail_subject
- field.field.message.vba_facility_draft_content.field_last_updated_by_editor
- field.field.message.vba_facility_draft_content.field_target_node_path
- field.field.message.vba_facility_draft_content.field_target_node_title
- message.template.vba_facility_draft_content
module:
- layout_builder
- user
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
id: message.vba_facility_draft_content.mail_subject
targetEntityType: message
bundle: vba_facility_draft_content
mode: mail_subject
content:
partial_0:
weight: 0
region: content
hidden:
breadcrumbs: true
field_last_updated_by_editor: true
field_target_node_path: true
field_target_node_title: true
partial_1: true
search_api_excerpt: true
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ module:
eca_content: 0
eca_ui: 0
eca_views: 0
eca_workflow: 0
editor: 0
embed: 0
entity_block: 0
Expand Down
93 changes: 93 additions & 0 deletions config/sync/eca.eca.workflow_vba_facility_as_draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
uuid: 57d6c892-1d53-4ebe-ae60-b4dd61d53248
langcode: en
status: true
dependencies:
config:
- field.field.node.banner.field_last_saved_by_an_editor
- field.field.node.basic_landing_page.field_last_saved_by_an_editor
- field.field.node.campaign_landing_page.field_last_saved_by_an_editor
- field.field.node.centralized_content.field_last_saved_by_an_editor
- field.field.node.checklist.field_last_saved_by_an_editor
- field.field.node.digital_form.field_last_saved_by_an_editor
- field.field.node.documentation_page.field_last_saved_by_an_editor
- field.field.node.event.field_last_saved_by_an_editor
- field.field.node.event_listing.field_last_saved_by_an_editor
- field.field.node.faq_multiple_q_a.field_last_saved_by_an_editor
- field.field.node.full_width_banner_alert.field_last_saved_by_an_editor
- field.field.node.health_care_local_facility.field_last_saved_by_an_editor
- field.field.node.health_care_local_health_service.field_last_saved_by_an_editor
- field.field.node.health_care_region_detail_page.field_last_saved_by_an_editor
- field.field.node.health_care_region_page.field_last_saved_by_an_editor
- field.field.node.health_services_listing.field_last_saved_by_an_editor
- field.field.node.landing_page.field_last_saved_by_an_editor
- field.field.node.leadership_listing.field_last_saved_by_an_editor
- field.field.node.locations_listing.field_last_saved_by_an_editor
- field.field.node.media_list_images.field_last_saved_by_an_editor
- field.field.node.media_list_videos.field_last_saved_by_an_editor
- field.field.node.nca_facility.field_last_saved_by_an_editor
- field.field.node.news_story.field_last_saved_by_an_editor
- field.field.node.office.field_last_saved_by_an_editor
- field.field.node.outreach_asset.field_last_saved_by_an_editor
- field.field.node.page.field_last_saved_by_an_editor
- field.field.node.person_profile.field_last_saved_by_an_editor
- field.field.node.press_release.field_last_saved_by_an_editor
- field.field.node.press_releases_listing.field_last_saved_by_an_editor
- field.field.node.promo_banner.field_last_saved_by_an_editor
- field.field.node.publication_listing.field_last_saved_by_an_editor
- field.field.node.q_a.field_last_saved_by_an_editor
- field.field.node.regional_health_care_service_des.field_last_saved_by_an_editor
- field.field.node.service_region.field_last_saved_by_an_editor
- field.field.node.step_by_step.field_last_saved_by_an_editor
- field.field.node.story_listing.field_last_saved_by_an_editor
- field.field.node.support_resources_detail_page.field_last_saved_by_an_editor
- field.field.node.support_service.field_last_saved_by_an_editor
- field.field.node.va_form.field_last_saved_by_an_editor
- field.field.node.vamc_operating_status_and_alerts.field_last_saved_by_an_editor
- field.field.node.vamc_system_billing_insurance.field_last_saved_by_an_editor
- field.field.node.vamc_system_medical_records_offi.field_last_saved_by_an_editor
- field.field.node.vamc_system_policies_page.field_last_saved_by_an_editor
- field.field.node.vamc_system_register_for_care.field_last_saved_by_an_editor
- field.field.node.vamc_system_va_police.field_last_saved_by_an_editor
- field.field.node.vba_facility.field_last_saved_by_an_editor
- field.field.node.vba_facility_service.field_last_saved_by_an_editor
- field.field.node.vet_center.field_last_saved_by_an_editor
- field.field.node.vet_center_cap.field_last_saved_by_an_editor
- field.field.node.vet_center_facility_health_servi.field_last_saved_by_an_editor
- field.field.node.vet_center_locations_list.field_last_saved_by_an_editor
- field.field.node.vet_center_mobile_vet_center.field_last_saved_by_an_editor
- field.field.node.vet_center_outstation.field_last_saved_by_an_editor
- field.field.node.vha_facility_nonclinical_service.field_last_saved_by_an_editor
- field.storage.node.field_last_saved_by_an_editor
- node.type.vba_facility
module:
- eca_workflow
- va_gov_eca
id: workflow_vba_facility_as_draft
modeller: core
label: 'Workflow: VBA Facility as Draft'
version: null
weight: 0
events:
workflow_transition:
plugin: 'workflow:transition'
label: 'Workflow: state transition'
configuration:
type: 'node vba_facility'
from_state: ''
to_state: draft
successors:
-
id: create_advancedqueue_job
condition: null
conditions: { }
gateways: { }
actions:
create_advancedqueue_job:
plugin: create_advancedqueue_job
label: 'Create an AdvancedQueue Job and optionally enqueue it.'
configuration:
token_name: job
type: va_gov_workflow_content_notification
payload: "template_values:\r\n uid: \"[entity:revision_uid:target_id]\"\r\n template: vba_facility_draft_content\r\nmail:\r\n - [email protected]\r\nvalues:\r\n field_last_updated_by_editor: \"[entity:field_last_saved_by_an_editor:date:medium]\"\r\n field_target_node_path: \"[entity:url:path]\"\r\n field_target_node_title: \"[entity:title]\"\r\n"
queue: content_worfkow
successors: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 80d16ec2-116b-4dd7-980d-6f8855b963dc
langcode: en
status: true
dependencies:
config:
- field.storage.message.field_last_updated_by_editor
- message.template.vba_facility_draft_content
module:
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: message.vba_facility_draft_content.field_last_updated_by_editor
field_name: field_last_updated_by_editor
entity_type: message
bundle: vba_facility_draft_content
label: 'Last Updated By Editor'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 6ae7bb2c-7c26-4202-a3ff-7f865bfa496e
langcode: en
status: true
dependencies:
config:
- field.storage.message.field_target_node_path
- message.template.vba_facility_draft_content
module:
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: message.vba_facility_draft_content.field_target_node_path
field_name: field_target_node_path
entity_type: message
bundle: vba_facility_draft_content
label: 'Node Path'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: ebd109a5-47a4-4006-97c8-6de23bf7de42
langcode: en
status: true
dependencies:
config:
- field.storage.message.field_target_node_title
- message.template.vba_facility_draft_content
module:
- tmgmt_content
third_party_settings:
tmgmt_content:
excluded: false
id: message.vba_facility_draft_content.field_target_node_title
field_name: field_target_node_title
entity_type: message
bundle: vba_facility_draft_content
label: 'Target Node Title'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
21 changes: 21 additions & 0 deletions config/sync/field.storage.message.field_last_updated_by_editor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: d194ed25-ff19-471c-9eb1-46d1e8a35e3e
langcode: en
status: true
dependencies:
module:
- message
id: message.field_last_updated_by_editor
field_name: field_last_updated_by_editor
entity_type: message
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading
Loading