From 044d4d195de4d210a40409481872a71818dfc6f2 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Wed, 17 Dec 2025 21:16:26 +0500 Subject: [PATCH] Ask process user input every time Signed-off-by: Denis Bykhov --- .../components/contextEditors/RequestUserInput.svelte | 3 +-- plugins/process-resources/src/utils.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/process-resources/src/components/contextEditors/RequestUserInput.svelte b/plugins/process-resources/src/components/contextEditors/RequestUserInput.svelte index adeb5b548c..5ca6d89258 100644 --- a/plugins/process-resources/src/components/contextEditors/RequestUserInput.svelte +++ b/plugins/process-resources/src/components/contextEditors/RequestUserInput.svelte @@ -26,8 +26,7 @@ export let transition: Ref export let key: string export let _class: Ref> - - let value: any | undefined = undefined + export let value: any | undefined = undefined const dispatch = createEventDispatcher() const client = getClient() diff --git a/plugins/process-resources/src/utils.ts b/plugins/process-resources/src/utils.ts index 7ee33619db..983d54ddbb 100644 --- a/plugins/process-resources/src/utils.ts +++ b/plugins/process-resources/src/utils.ts @@ -458,11 +458,17 @@ export async function getTransitionUserInput ( for (const key in action.params) { const value = (action.params as any)[key] const context = parseContext(value) - if (context !== undefined && context.type === 'userRequest' && userContext[context.id] === undefined) { + if (context !== undefined && context.type === 'userRequest') { const promise = new Promise((resolve) => { showPopup( process.component.RequestUserInput, - { processId, transition: transition._id, key: context.key, _class: context._class }, + { + processId, + transition: transition._id, + key: context.key, + _class: context._class, + value: userContext[context.id] + }, undefined, (res) => { if (res?.value !== undefined) {