-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
11.0.3: * [Workflows] Added the
cerb.records.reminders
workflow for…
… creating reminders from record profiles and cards.
- Loading branch information
Showing
4 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
features/cerberusweb.core/workflows/cerb.records.reminders.kata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
workflow: | ||
name: cerb.records.reminders | ||
description: Create reminders from record profiles and cards | ||
website: https://cerb.ai/workflows/cerb.records.reminders/ | ||
requirements: | ||
cerb_version: >=11.0 <11.1 | ||
cerb_plugins: cerberusweb.core | ||
version: 2025-01-13T23:21:57Z | ||
records: | ||
automation/workerInteraction: | ||
fields: | ||
name: cerb.records.reminders.interaction | ||
extension_id: cerb.trigger.interaction.worker | ||
description@text: | ||
script@raw: | ||
inputs: | ||
text/record_type: | ||
type: freeform | ||
required@bool: yes | ||
text/record_id: | ||
type: number | ||
required@bool: yes | ||
|
||
start: | ||
set/load: | ||
record_id@int: {{inputs.record_id}} | ||
record__context: {{inputs.record_type}} | ||
|
||
await/input: | ||
form: | ||
title: Create Reminder | ||
elements: | ||
text/prompt_name: | ||
label: Reminder: | ||
required@bool: yes | ||
type: freeform | ||
default: {{record__label}} | ||
placeholder: (e.g. "Remind me to write back") | ||
text/prompt_due: | ||
label: When: | ||
type: date | ||
required@bool: yes | ||
chooser/prompt_owner_id: | ||
label: Who: | ||
record_type: worker | ||
query@text: isDisabled:n | ||
default: {{worker_id}} | ||
required@bool: yes | ||
|
||
record.create/reminder: | ||
output: new_reminder | ||
inputs@ref: | ||
record_type: reminder | ||
fields: | ||
name: {{prompt_name}} | ||
remind_at@date: {{prompt_due}} | ||
worker_id@optional,int: {{prompt_owner_id}} | ||
links@csv: {{record__context}}:{{record_id}} | ||
|
||
return: | ||
alert: Reminder created! | ||
policy_kata@raw: | ||
commands: | ||
record.create: | ||
deny/type@bool: {{inputs.record_type is not record type ('reminder')}} | ||
allow@bool: yes | ||
toolbar_section/recordProfile: | ||
fields: | ||
name: Reminders | ||
toolbar_name: record.profile | ||
priority@int: 50 | ||
is_disabled: 0 | ||
toolbar_kata@raw: | ||
interaction/reminder: | ||
label: Reminder | ||
uri: cerb:automation:cerb.records.reminders.interaction | ||
icon: pushpin | ||
inputs: | ||
record_type: {{record__context}} | ||
record_id: {{record_id}} | ||
after: | ||
refresh_toolbar@bool: no | ||
refresh_widgets@list: Ticket | ||
toolbar_section/recordCard: | ||
fields: | ||
name: Reminders | ||
toolbar_name: record.card | ||
priority@int: 50 | ||
is_disabled: 0 | ||
toolbar_kata@raw: | ||
interaction/reminder: | ||
label: Reminder | ||
uri: cerb:automation:cerb.records.reminders.interaction | ||
icon: pushpin | ||
inputs: | ||
record_type: {{record__context}} | ||
record_id: {{record_id}} | ||
after: | ||
refresh_toolbar@bool: no | ||
refresh_widgets@list: Properties |