From 844feae395060d7f1f28a80fadd41fa3dcc46093 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Mon, 13 Apr 2026 09:50:09 +0500 Subject: [PATCH] EmptyValue process function (#10756) * EmptyValue process function Signed-off-by: Denis Bykhov * Fix formatting Signed-off-by: Denis Bykhov --------- Signed-off-by: Denis Bykhov --- models/process/src/functions.ts | 12 +++++++ models/server-process/src/index.ts | 4 +++ .../src/components/CardGridView.svelte | 33 ++++++++++--------- .../ActivitySetAttributeViewer.svelte | 2 +- plugins/process-assets/lang/cs.json | 3 +- plugins/process-assets/lang/de.json | 3 +- plugins/process-assets/lang/en.json | 3 +- plugins/process-assets/lang/es.json | 3 +- plugins/process-assets/lang/fr.json | 3 +- plugins/process-assets/lang/it.json | 3 +- plugins/process-assets/lang/ja.json | 3 +- plugins/process-assets/lang/pt-br.json | 3 +- plugins/process-assets/lang/pt.json | 3 +- plugins/process-assets/lang/ru.json | 3 +- plugins/process-assets/lang/tr.json | 3 +- plugins/process-assets/lang/zh.json | 3 +- plugins/process-resources/src/plugin.ts | 1 + plugins/process-resources/src/utils.ts | 2 +- plugins/process/src/index.ts | 1 + .../src/components/StringPresenter.svelte | 6 ++-- server-plugins/process-resources/src/index.ts | 2 ++ .../process-resources/src/transform.ts | 4 +++ server-plugins/process-resources/src/utils.ts | 4 +-- server-plugins/process/src/index.ts | 1 + 24 files changed, 74 insertions(+), 34 deletions(-) diff --git a/models/process/src/functions.ts b/models/process/src/functions.ts index 62f49afee9..5beae3ee06 100644 --- a/models/process/src/functions.ts +++ b/models/process/src/functions.ts @@ -461,6 +461,18 @@ export function defineFunctions (builder: Builder): void { process.function.RoleContext ) + builder.createDoc( + process.class.ProcessFunction, + core.space.Model, + { + of: core.class.TypeAny, + category: 'attribute', + label: process.string.EmptyValue, + type: 'context' + }, + process.function.EmptyValue + ) + builder.createDoc( process.class.ProcessFunction, core.space.Model, diff --git a/models/server-process/src/index.ts b/models/server-process/src/index.ts index ad39002e89..8f53293117 100644 --- a/models/server-process/src/index.ts +++ b/models/server-process/src/index.ts @@ -343,6 +343,10 @@ export function createModel (builder: Builder): void { func: serverProcess.transform.RemoveLast }) + builder.mixin(process.function.EmptyValue, process.class.ProcessFunction, serverProcess.mixin.FuncImpl, { + func: serverProcess.transform.EmptyValue + }) + builder.mixin(process.function.EmptyArray, process.class.ProcessFunction, serverProcess.mixin.FuncImpl, { func: serverProcess.transform.EmptyArray }) diff --git a/plugins/card-resources/src/components/CardGridView.svelte b/plugins/card-resources/src/components/CardGridView.svelte index 6fdad5b8a1..0c758c72d5 100644 --- a/plugins/card-resources/src/components/CardGridView.svelte +++ b/plugins/card-resources/src/components/CardGridView.svelte @@ -13,9 +13,10 @@ // limitations under the License. -->