diff --git a/.changeset/37766-opening-lead.md b/.changeset/37766-opening-lead.md new file mode 100644 index 00000000000..41fcfa5b582 --- /dev/null +++ b/.changeset/37766-opening-lead.md @@ -0,0 +1,12 @@ +--- +'@objectstack/plugin-approvals': patch +--- + +fix(approvals): the opening refusal no longer says the object closes on its approval field when its only gaps are the host's or an unreadable flow + +Clause-②: yes (widening) +Metadata-protocol: none + +Widened: the plugin's message catalog gains the sentence `approvalOpeningRefusedClosedStatesLead` in all 11 locale packs. + +An approval's first request is refused when an object it can act on declares `closedStates` and the host runs no job service, or when a flow it runs cannot be read. Those gaps are raised whatever field the object closes on. The refusal's lead used to say "the object closes on its approval field" in every case, which is false for an object that closes on another field. Where every gap is one of those two, the lead now says only what is true: the approval can act on an object that declares `closedStates`. The sentences per gap are unchanged. diff --git a/packages/plugins/plugin-approvals/src/approval-opening-check-37766.integration.test.ts b/packages/plugins/plugin-approvals/src/approval-opening-check-37766.integration.test.ts index 33fe0a448a9..f298162934b 100644 --- a/packages/plugins/plugin-approvals/src/approval-opening-check-37766.integration.test.ts +++ b/packages/plugins/plugin-approvals/src/approval-opening-check-37766.integration.test.ts @@ -92,7 +92,7 @@ describe('[ADR-0162 item 7] the check when an approval opens', () => { try { await kernel?.shutdown(); } catch { /* noop */ } }); - async function boot(opts: { sweeps?: boolean; invoiceDef?: Record } = {}) { + async function boot(opts: { sweeps?: boolean; invoiceDef?: Record; warns?: string[] } = {}) { kernel = new ObjectKernel({ logger: { level: 'silent' } } as any); await kernel.use(new ObjectQLPlugin()); await kernel.use(new AutomationServicePlugin()); @@ -118,7 +118,9 @@ describe('[ADR-0162 item 7] the check when an approval opens', () => { await ql.insert('sys_member', { id: `mem_${id}`, user_id: id, organization_id: ORG, role: 'member' }, { context: SYS }); } const quiet = { debug: () => {}, info: () => {}, warn: () => {}, error: () => {} }; - svc = new ApprovalService({ engine: ql, logger: quiet as any }); + const sink = opts.warns; + const serviceLogger = sink ? { ...quiet, warn: (message: string) => { sink.push(message); } } : quiet; + svc = new ApprovalService({ engine: ql, logger: serviceLogger as any }); if (opts.sweeps !== false) svc.noteSweepClockScheduled(); svc.attachAutomation(automation as any); registerApprovalNode(automation as any, svc, quiet as any); @@ -229,4 +231,30 @@ describe('[ADR-0162 item 7] the check when an approval opens', () => { await seed('crm_memo', 'm_host'); expect((await start('two_step', 'crm_memo', 'm_host')).status).toBe('paused'); }); + + describe('the log line at a refusal says the object closes on its approval field only where a gap is about it', () => { + const FIELD_CLAIM = 'closes on its approval field'; + const refusalWarns = (warns: string[]) => warns.filter((w) => w.includes('was refused at its first request')); + + it('does not say it where the host\'s gap is the only one', async () => { + const warns: string[] = []; + await boot({ sweeps: false, warns }); + await seed('crm_invoice', 'i_host_log'); + expect((await start('two_step', 'crm_invoice', 'i_host_log')).status).toBe('failed'); + const logged = refusalWarns(warns); + expect(logged).toHaveLength(1); + expect(logged[0]).not.toContain(FIELD_CLAIM); + expect(logged[0]).toContain('declares closedStates'); + }); + + it('says it where a gap is about the field (control)', async () => { + const warns: string[] = []; + await boot({ warns }); + await seed('crm_invoice', 'i_wait_log'); + expect((await start('wait_between', 'crm_invoice', 'i_wait_log')).status).toBe('failed'); + const logged = refusalWarns(warns); + expect(logged).toHaveLength(1); + expect(logged[0]).toContain(FIELD_CLAIM); + }); + }); }); diff --git a/packages/plugins/plugin-approvals/src/approval-opening-refusal.test.ts b/packages/plugins/plugin-approvals/src/approval-opening-refusal.test.ts new file mode 100644 index 00000000000..5ea0e31c29b --- /dev/null +++ b/packages/plugins/plugin-approvals/src/approval-opening-refusal.test.ts @@ -0,0 +1,72 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * [ADR-0162 Execution item 7] The lead of the refusal at an approval's first + * request says the object closes on its approval field only where a gap is + * about that field. The host's gap (`no_job_service`) and a flow that could + * not be read (`unreadable_flow`) are raised on an object that declares + * `closedStates` on any field, so where they are the only gaps the lead says + * what is true in every case: the approval can act on an object that declares + * `closedStates`. + * + * The expected sentences are read from the catalog, not written out here: what + * these tests hold is WHICH lead is chosen, and in which pack; the wording is + * the catalog's, and `approval-notification-keyed-text.integration.test.ts` holds every locale + * to the same ids and holes. + */ + +import { describe, expect, it } from 'vitest'; +import { interpolate } from './approval-notification-text.js'; +import type { OpeningGap } from './approval-opening-check.js'; +import { openingRefusalText } from './approval-opening-refusal.js'; +import { approvalMessages } from './translations/messages.js'; + +const subject = { object: 'crm_deal', record: 'd1' }; +type Locale = keyof typeof approvalMessages; +const fieldLead = (locale: Locale) => interpolate(approvalMessages[locale].approvalOpeningRefusedLead, subject); +const neutralLead = (locale: Locale) => interpolate(approvalMessages[locale].approvalOpeningRefusedClosedStatesLead, subject); +const sentence = (gap: OpeningGap, id: 'approvalOpeningNoJobService' | 'approvalOpeningUnreadableFlow') => { + const { kind: _kind, ...params } = gap; + return interpolate(approvalMessages.en[id], params as Record); +}; + +const host: OpeningGap = { kind: 'no_job_service', object: 'crm_deal' }; +const unreadable: OpeningGap = { kind: 'unreadable_flow', flow: 'deal_sub' }; +const pause: OpeningGap = { kind: 'pause_between_steps', flow: 'deal_flow', node: 'hold', type: 'wait', object: 'crm_deal' }; + +describe('the opening refusal: its lead', () => { + it('the two leads are two sentences, in every pack', () => { + for (const locale of Object.keys(approvalMessages) as Locale[]) { + expect(neutralLead(locale), locale).not.toBe(fieldLead(locale)); + } + }); + + it('does not say the object closes on its approval field where the host\'s gap is the only one', () => { + const text = openingRefusalText([host], subject, 'en'); + expect(text).toBe(`${neutralLead('en')} ${sentence(host, 'approvalOpeningNoJobService')}`); + }); + + it('does not say it where a flow that could not be read is the only gap', () => { + const text = openingRefusalText([unreadable], subject, 'en'); + expect(text).toBe(`${neutralLead('en')} ${sentence(unreadable, 'approvalOpeningUnreadableFlow')}`); + }); + + it('does not say it where the host\'s gap and an unreadable flow are the only gaps', () => { + const text = openingRefusalText([unreadable, host], subject, 'en'); + expect(text.startsWith(`${neutralLead('en')} `)).toBe(true); + expect(text).not.toContain(fieldLead('en')); + }); + + it('says it where a gap is about the field, alone or beside the host\'s', () => { + expect(openingRefusalText([pause], subject, 'en').startsWith(`${fieldLead('en')} `)).toBe(true); + expect(openingRefusalText([pause, host], subject, 'en').startsWith(`${fieldLead('en')} `)).toBe(true); + expect(openingRefusalText([host, pause], subject, 'en').startsWith(`${fieldLead('en')} `)).toBe(true); + }); + + it('words the lead that says nothing about the field in the run\'s locale', () => { + const text = openingRefusalText([host], subject, 'zh-CN'); + expect(text.startsWith(`${neutralLead('zh-CN')} `)).toBe(true); + expect(text).not.toContain(fieldLead('zh-CN')); + expect(neutralLead('zh-CN')).not.toBe(neutralLead('en')); + }); +}); diff --git a/packages/plugins/plugin-approvals/src/approval-opening-refusal.ts b/packages/plugins/plugin-approvals/src/approval-opening-refusal.ts index 3018bdec513..6251c07bab4 100644 --- a/packages/plugins/plugin-approvals/src/approval-opening-refusal.ts +++ b/packages/plugins/plugin-approvals/src/approval-opening-refusal.ts @@ -44,6 +44,23 @@ export function openingRefusalPack(locale: string | undefined): Pack { return same ? packs[same]! : approvalMessages.en; } +/** + * The gaps that say nothing about the approval field: the host's, and a flow + * that could not be read. Where every gap is one of these, the lead does not + * say the object closes on its approval field, which may be false: an object + * can declare `closedStates` on another field. + */ +const NOT_ABOUT_THE_FIELD: ReadonlySet = new Set(['no_job_service', 'unreadable_flow']); + +/** + * Whether any of `gaps` is about the approval field, so that "the object + * closes on its approval field" is true of the refusal. The one rule for every + * text that says so: the refusal's lead here, and the service's log line. + */ +export function gapsAreAboutTheField(gaps: readonly OpeningGap[]): boolean { + return gaps.some((gap) => !NOT_ABOUT_THE_FIELD.has(gap.kind)); +} + /** The refusal text for `gaps`, on the record `subject`, in `locale`. */ export function openingRefusalText( gaps: readonly OpeningGap[], @@ -51,7 +68,10 @@ export function openingRefusalText( locale?: string, ): string { const pack = openingRefusalPack(locale); - const lead = interpolate(pack.approvalOpeningRefusedLead, { object: subject.object, record: subject.record }); + const lead = interpolate( + gapsAreAboutTheField(gaps) ? pack.approvalOpeningRefusedLead : pack.approvalOpeningRefusedClosedStatesLead, + { object: subject.object, record: subject.record }, + ); const sentences = gaps.map((gap) => { const { kind, ...params } = gap; return interpolate(pack[GAP_SENTENCE[kind]], params as Record); diff --git a/packages/plugins/plugin-approvals/src/approval-service.ts b/packages/plugins/plugin-approvals/src/approval-service.ts index 6b0c526b581..99f0f848903 100644 --- a/packages/plugins/plugin-approvals/src/approval-service.ts +++ b/packages/plugins/plugin-approvals/src/approval-service.ts @@ -180,7 +180,7 @@ import { consolePageLink, type ConsolePageComposer } from './public-base-url.js' import { APPROVAL_EMAIL_CHANNELS, EMAILED_APPROVAL_TOPICS } from './approval-email-templates.js'; import { enMessages } from './translations/messages.js'; import { closedValuesOf, judgeApprovalOpening, type OpeningFlow } from './approval-opening-check.js'; -import { openingRefusalText } from './approval-opening-refusal.js'; +import { gapsAreAboutTheField, openingRefusalText } from './approval-opening-refusal.js'; import { approvalMessageKey, approvalNotificationText, @@ -5252,7 +5252,9 @@ export class ApprovalService implements IApprovalService, ObjectSchemaReadDelega }); if (judgement.gaps.length > 0) { const locale = input.locale ?? (context as { locale?: string } | undefined)?.locale; - this.logger?.warn?.('[approvals] an approval was refused at its first request: the record\'s object closes on its approval field and the approval cannot show it in progress (ADR-0162 D5)', { + this.logger?.warn?.(gapsAreAboutTheField(judgement.gaps) + ? '[approvals] an approval was refused at its first request: the record\'s object closes on its approval field and the approval cannot show it in progress (ADR-0162 D5)' + : '[approvals] an approval was refused at its first request: it can act on an object that declares closedStates, and this host runs no job service or a flow it runs could not be read (ADR-0162 D5)', { object: input.object, record: input.recordId, run: input.runId, rootRun: rootRun.runId, gaps: judgement.gaps.map((g) => g.kind), }); diff --git a/packages/plugins/plugin-approvals/src/translations/messages.ts b/packages/plugins/plugin-approvals/src/translations/messages.ts index ee99b8e5e41..1b11c1744e4 100644 --- a/packages/plugins/plugin-approvals/src/translations/messages.ts +++ b/packages/plugins/plugin-approvals/src/translations/messages.ts @@ -123,6 +123,7 @@ const enSentences = { approvalStatusMirrorRefusedTitle: 'Approval status not written', approvalStatusMirrorRefusedBody: 'The approval status of {{object}} {{record}} was refused by a rule or hook of the app: {{reason}} Change that rule or hook so the status can be written.', approvalOpeningRefusedLead: 'The approval of {{object}} {{record}} was not started: the object closes on its approval field, and the approval cannot show itself in progress there.', + approvalOpeningRefusedClosedStatesLead: 'The approval of {{object}} {{record}} was not started: it can act on an object that declares closedStates.', approvalOpeningNoPendingOption: 'Field {{field}} of {{object}} (step {{step}} of flow {{flow}}) does not declare the value pending; add it to the field\'s options.', approvalOpeningClosesInFlight: '{{object}} closes on {{value}} of field {{field}} (step {{step}} of flow {{flow}}), a status of an approval in progress; remove {{value}} from the object\'s closedStates.', approvalOpeningStateMachine: 'The state_machine rule {{rule}} on field {{field}} of {{object}} (step {{step}} of flow {{flow}}) declares the moves out of {{value}} without pending; add pending to them.', @@ -270,6 +271,7 @@ export const zhCNMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: '审批状态未能写入', approvalStatusMirrorRefusedBody: '{{object}} {{record}} 的审批状态被应用自己的规则或钩子拒绝:{{reason}} 请修改该规则或钩子,使状态可以写入。', approvalOpeningRefusedLead: '{{object}} {{record}} 的审批没有发起:该对象会在审批字段上关闭,而这次审批无法在该字段上显示「审批中」。', + approvalOpeningRefusedClosedStatesLead: '{{object}} {{record}} 的审批没有发起:它可能作用到一个声明了 closedStates 的对象。', approvalOpeningNoPendingOption: '{{object}} 的字段 {{field}}(流程 {{flow}} 的步骤 {{step}})没有声明值 pending;请把它加入该字段的选项。', approvalOpeningClosesInFlight: '{{object}} 在字段 {{field}} 的 {{value}} 上关闭(流程 {{flow}} 的步骤 {{step}}),而这是审批进行中的状态;请把 {{value}} 从对象的 closedStates 中去掉。', approvalOpeningStateMachine: '{{object}} 字段 {{field}} 上的 state_machine 规则 {{rule}}(流程 {{flow}} 的步骤 {{step}})声明了从 {{value}} 出发的转移,但其中没有 pending;请加上 pending。', @@ -354,6 +356,7 @@ export const jaJPMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: '承認ステータスを書き込めませんでした', approvalStatusMirrorRefusedBody: '{{object}} {{record}} の承認ステータスは、アプリのルールまたはフックに拒否されました:{{reason}} ステータスを書き込めるよう、そのルールまたはフックを変更してください。', approvalOpeningRefusedLead: '{{object}} {{record}} の承認は開始されませんでした:このオブジェクトは承認フィールドでクローズしますが、この承認はそのフィールドに承認中を表示できません。', + approvalOpeningRefusedClosedStatesLead: '{{object}} {{record}} の承認は開始されませんでした:この承認は closedStates を宣言するオブジェクトに作用する可能性があります。', approvalOpeningNoPendingOption: '{{object}} のフィールド {{field}}(フロー {{flow}} のステップ {{step}})は値 pending を宣言していません。フィールドの選択肢に追加してください。', approvalOpeningClosesInFlight: '{{object}} はフィールド {{field}} の {{value}} でクローズします(フロー {{flow}} のステップ {{step}})。これは進行中の承認のステータスです。{{value}} をオブジェクトの closedStates から外してください。', approvalOpeningStateMachine: '{{object}} のフィールド {{field}} にある state_machine ルール {{rule}}(フロー {{flow}} のステップ {{step}})は {{value}} からの遷移を宣言していますが、pending が含まれていません。pending を追加してください。', @@ -438,6 +441,7 @@ export const esESMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: 'No se escribió el estado de aprobación', approvalStatusMirrorRefusedBody: 'Una regla o un hook de la aplicación rechazó el estado de aprobación de {{object}} {{record}}: {{reason}} Cambie esa regla o ese hook para que el estado pueda escribirse.', approvalOpeningRefusedLead: 'No se inició la aprobación de {{object}} {{record}}: el objeto se cierra en su campo de aprobación y la aprobación no puede mostrarse en curso en él.', + approvalOpeningRefusedClosedStatesLead: 'No se inició la aprobación de {{object}} {{record}}: puede actuar sobre un objeto que declara closedStates.', approvalOpeningNoPendingOption: 'El campo {{field}} de {{object}} (paso {{step}} del flujo {{flow}}) no declara el valor pending; añádalo a las opciones del campo.', approvalOpeningClosesInFlight: '{{object}} se cierra en {{value}} del campo {{field}} (paso {{step}} del flujo {{flow}}), un estado de una aprobación en curso; quite {{value}} de los closedStates del objeto.', approvalOpeningStateMachine: 'La regla state_machine {{rule}} del campo {{field}} de {{object}} (paso {{step}} del flujo {{flow}}) declara las transiciones desde {{value}} sin pending; añada pending.', @@ -522,6 +526,7 @@ export const zhHantMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: '核准狀態未能寫入', approvalStatusMirrorRefusedBody: '{{object}} {{record}} 的核准狀態被應用程式自己的規則或掛鉤拒絕:{{reason}} 請修改該規則或掛鉤,讓狀態可以寫入。', approvalOpeningRefusedLead: '{{object}} {{record}} 的核准沒有發起:該物件會在核准欄位上關閉,而這次核准無法在該欄位上顯示「核准中」。', + approvalOpeningRefusedClosedStatesLead: '{{object}} {{record}} 的核准沒有發起:它可能作用到一個宣告了 closedStates 的物件。', approvalOpeningNoPendingOption: '{{object}} 的欄位 {{field}}(流程 {{flow}} 的步驟 {{step}})沒有宣告值 pending;請把它加入該欄位的選項。', approvalOpeningClosesInFlight: '{{object}} 在欄位 {{field}} 的 {{value}} 上關閉(流程 {{flow}} 的步驟 {{step}}),而這是核准進行中的狀態;請把 {{value}} 從物件的 closedStates 中移除。', approvalOpeningStateMachine: '{{object}} 欄位 {{field}} 上的 state_machine 規則 {{rule}}(流程 {{flow}} 的步驟 {{step}})宣告了從 {{value}} 出發的轉移,但其中沒有 pending;請加上 pending。', @@ -606,6 +611,7 @@ export const arMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: 'لم تُكتب حالة الموافقة', approvalStatusMirrorRefusedBody: 'رفضت قاعدة أو خطّاف في التطبيق حالة الموافقة على {{object}} {{record}}: {{reason}} غيّر تلك القاعدة أو ذلك الخطّاف لكي تُكتب الحالة.', approvalOpeningRefusedLead: 'لم تبدأ الموافقة على {{object}} {{record}}: الكائن يُغلَق على حقل الموافقة، والموافقة لا تستطيع أن تُظهر فيه أنها جارية.', + approvalOpeningRefusedClosedStatesLead: 'لم تبدأ الموافقة على {{object}} {{record}}: قد تعمل على كائن يُعلن closedStates.', approvalOpeningNoPendingOption: 'الحقل {{field}} في {{object}} (الخطوة {{step}} من التدفق {{flow}}) لا يصرّح بالقيمة pending؛ أضفها إلى خيارات الحقل.', approvalOpeningClosesInFlight: 'يُغلَق {{object}} على القيمة {{value}} من الحقل {{field}} (الخطوة {{step}} من التدفق {{flow}})، وهي حالة موافقة جارية؛ أزل {{value}} من closedStates للكائن.', approvalOpeningStateMachine: 'قاعدة state_machine {{rule}} على الحقل {{field}} في {{object}} (الخطوة {{step}} من التدفق {{flow}}) تصرّح بالانتقالات من {{value}} دون pending؛ أضف pending.', @@ -690,6 +696,7 @@ export const frMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: 'Statut d’approbation non écrit', approvalStatusMirrorRefusedBody: 'Une règle ou un hook de l’application a refusé le statut d’approbation de {{object}} {{record}} : {{reason}} Modifiez cette règle ou ce hook pour que le statut puisse être écrit.', approvalOpeningRefusedLead: 'L\'approbation de {{object}} {{record}} n\'a pas été lancée : l\'objet se ferme sur son champ d\'approbation, et l\'approbation ne peut pas s\'y afficher en cours.', + approvalOpeningRefusedClosedStatesLead: 'L\'approbation de {{object}} {{record}} n\'a pas été lancée : elle peut agir sur un objet qui déclare closedStates.', approvalOpeningNoPendingOption: 'Le champ {{field}} de {{object}} (étape {{step}} du flux {{flow}}) ne déclare pas la valeur pending ; ajoutez-la aux options du champ.', approvalOpeningClosesInFlight: '{{object}} se ferme sur {{value}} du champ {{field}} (étape {{step}} du flux {{flow}}), un statut d\'approbation en cours ; retirez {{value}} des closedStates de l\'objet.', approvalOpeningStateMachine: 'La règle state_machine {{rule}} du champ {{field}} de {{object}} (étape {{step}} du flux {{flow}}) déclare les transitions depuis {{value}} sans pending ; ajoutez pending.', @@ -774,6 +781,7 @@ export const ptBRMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: 'Status de aprovação não gravado', approvalStatusMirrorRefusedBody: 'Uma regra ou um hook do aplicativo recusou o status de aprovação de {{object}} {{record}}: {{reason}} Altere essa regra ou esse hook para que o status possa ser gravado.', approvalOpeningRefusedLead: 'A aprovação de {{object}} {{record}} não foi iniciada: o objeto é fechado no seu campo de aprovação, e a aprovação não consegue se mostrar em andamento nele.', + approvalOpeningRefusedClosedStatesLead: 'A aprovação de {{object}} {{record}} não foi iniciada: ela pode agir sobre um objeto que declara closedStates.', approvalOpeningNoPendingOption: 'O campo {{field}} de {{object}} (etapa {{step}} do fluxo {{flow}}) não declara o valor pending; adicione-o às opções do campo.', approvalOpeningClosesInFlight: '{{object}} é fechado em {{value}} do campo {{field}} (etapa {{step}} do fluxo {{flow}}), um status de aprovação em andamento; remova {{value}} dos closedStates do objeto.', approvalOpeningStateMachine: 'A regra state_machine {{rule}} no campo {{field}} de {{object}} (etapa {{step}} do fluxo {{flow}}) declara as transições a partir de {{value}} sem pending; adicione pending.', @@ -858,6 +866,7 @@ export const ruMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: 'Статус согласования не записан', approvalStatusMirrorRefusedBody: 'Правило или хук приложения отклонили статус согласования для {{object}} {{record}}: {{reason}} Измените это правило или хук, чтобы статус можно было записать.', approvalOpeningRefusedLead: 'Согласование {{object}} {{record}} не запущено: объект закрывается по своему полю согласования, а согласование не может показать в нём, что оно идёт.', + approvalOpeningRefusedClosedStatesLead: 'Согласование {{object}} {{record}} не запущено: оно может действовать на объект, который объявляет closedStates.', approvalOpeningNoPendingOption: 'Поле {{field}} объекта {{object}} (шаг {{step}} процесса {{flow}}) не объявляет значение pending; добавьте его в варианты поля.', approvalOpeningClosesInFlight: '{{object}} закрывается на значении {{value}} поля {{field}} (шаг {{step}} процесса {{flow}}), а это статус идущего согласования; уберите {{value}} из closedStates объекта.', approvalOpeningStateMachine: 'Правило state_machine {{rule}} на поле {{field}} объекта {{object}} (шаг {{step}} процесса {{flow}}) объявляет переходы из {{value}} без pending; добавьте pending.', @@ -942,6 +951,7 @@ export const deMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: 'Genehmigungsstatus nicht geschrieben', approvalStatusMirrorRefusedBody: 'Eine Regel oder ein Hook der App hat den Genehmigungsstatus von {{object}} {{record}} abgelehnt: {{reason}} Ändern Sie diese Regel oder diesen Hook, damit der Status geschrieben werden kann.', approvalOpeningRefusedLead: 'Die Genehmigung von {{object}} {{record}} wurde nicht gestartet: Das Objekt schließt auf seinem Genehmigungsfeld, und die Genehmigung kann sich dort nicht als laufend zeigen.', + approvalOpeningRefusedClosedStatesLead: 'Die Genehmigung von {{object}} {{record}} wurde nicht gestartet: Sie kann auf ein Objekt wirken, das closedStates deklariert.', approvalOpeningNoPendingOption: 'Das Feld {{field}} von {{object}} (Schritt {{step}} des Flows {{flow}}) deklariert den Wert pending nicht; fügen Sie ihn den Optionen des Feldes hinzu.', approvalOpeningClosesInFlight: '{{object}} schließt auf {{value}} des Feldes {{field}} (Schritt {{step}} des Flows {{flow}}), einem Status einer laufenden Genehmigung; entfernen Sie {{value}} aus den closedStates des Objekts.', approvalOpeningStateMachine: 'Die state_machine-Regel {{rule}} auf dem Feld {{field}} von {{object}} (Schritt {{step}} des Flows {{flow}}) deklariert die Übergänge aus {{value}} ohne pending; fügen Sie pending hinzu.', @@ -1026,6 +1036,7 @@ export const koMessages: ApprovalMessages = { approvalStatusMirrorRefusedTitle: '승인 상태를 기록하지 못했습니다', approvalStatusMirrorRefusedBody: '앱의 규칙 또는 훅이 {{object}} {{record}}의 승인 상태를 거부했습니다: {{reason}} 상태를 기록할 수 있도록 해당 규칙 또는 훅을 변경하세요.', approvalOpeningRefusedLead: '{{object}} {{record}}의 승인이 시작되지 않았습니다: 이 개체는 승인 필드에서 닫히는데, 이 승인은 그 필드에 진행 중임을 표시할 수 없습니다.', + approvalOpeningRefusedClosedStatesLead: '{{object}} {{record}}의 승인이 시작되지 않았습니다: 이 승인은 closedStates를 선언한 개체에 작용할 수 있습니다.', approvalOpeningNoPendingOption: '{{object}}의 필드 {{field}}(흐름 {{flow}}의 단계 {{step}})는 값 pending을 선언하지 않습니다. 필드의 옵션에 추가하세요.', approvalOpeningClosesInFlight: '{{object}}는 필드 {{field}}의 {{value}}에서 닫힙니다(흐름 {{flow}}의 단계 {{step}}). 이는 진행 중인 승인의 상태입니다. 개체의 closedStates에서 {{value}}를 제거하세요.', approvalOpeningStateMachine: '{{object}}의 필드 {{field}}에 있는 state_machine 규칙 {{rule}}(흐름 {{flow}}의 단계 {{step}})은 {{value}}에서 나가는 전이를 선언하지만 pending이 없습니다. pending을 추가하세요.',