diff --git a/models/process/src/index.ts b/models/process/src/index.ts index 06c07f7f1f..c64ea6b144 100644 --- a/models/process/src/index.ts +++ b/models/process/src/index.ts @@ -60,6 +60,7 @@ import { type Step, type Transition, type Trigger, + type TriggerResult, type UpdateCriteriaComponent, processId } from '@hcengineering/process' @@ -131,6 +132,8 @@ export class TTransition extends TDoc implements Transition { trigger!: Ref triggerParams!: Record + + result?: TriggerResult | null } @Model(process.class.ExecutionLog, core.class.Doc, DOMAIN_PROCESS_LOG) diff --git a/plugins/process-resources/src/components/attributeEditors/ContextSelectorPopup.svelte b/plugins/process-resources/src/components/attributeEditors/ContextSelectorPopup.svelte index 7159e57a1a..0751be0e4f 100644 --- a/plugins/process-resources/src/components/attributeEditors/ContextSelectorPopup.svelte +++ b/plugins/process-resources/src/components/attributeEditors/ContextSelectorPopup.svelte @@ -19,7 +19,7 @@ import { Context, Process, - ProcessContext, + ProcessExecutionContext, ProcessFunction, RelatedContext, SelectedContext @@ -83,7 +83,7 @@ dispatch('close') } - function onProcessContext (ctx: ProcessContext): void { + function onProcessContext (ctx: ProcessExecutionContext): void { onSelect(ctx.value) dispatch('close') } @@ -155,15 +155,30 @@