Ask process user input every time

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2025-12-17 21:16:26 +05:00
parent c10d128c66
commit 044d4d195d
2 changed files with 9 additions and 4 deletions
@@ -26,8 +26,7 @@
export let transition: Ref<Transition>
export let key: string
export let _class: Ref<Class<Doc>>
let value: any | undefined = undefined
export let value: any | undefined = undefined
const dispatch = createEventDispatcher()
const client = getClient()
+8 -2
View File
@@ -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<void>((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) {