diff --git a/models/process/src/index.ts b/models/process/src/index.ts index ab4340a52e..324e5aa6bd 100644 --- a/models/process/src/index.ts +++ b/models/process/src/index.ts @@ -724,6 +724,7 @@ export function createModel (builder: Builder): void { { of: contact.mixin.Employee, editor: process.component.RoleEditor, + presenter: process.transformPresenter.RolePresenter, category: 'array', label: core.string.Role, type: 'context' diff --git a/plugins/process-resources/src/components/attributeEditors/ConfigurePopup.svelte b/plugins/process-resources/src/components/attributeEditors/ConfigurePopup.svelte index ba32b1367a..860a4d4673 100644 --- a/plugins/process-resources/src/components/attributeEditors/ConfigurePopup.svelte +++ b/plugins/process-resources/src/components/attributeEditors/ConfigurePopup.svelte @@ -105,7 +105,7 @@ $: sourceFunc = contextValue.sourceFunction !== undefined - ? client.getModel().findAllSync(plugin.class.ProcessFunction, { _id: contextValue.sourceFunction })[0] + ? client.getModel().findAllSync(plugin.class.ProcessFunction, { _id: contextValue.sourceFunction.func })[0] : undefined $: functionButtonIndex = functionsLength + (sourceFunc !== undefined ? 1 : 0) @@ -161,7 +161,7 @@ } function onSourceFunctionSelect (e: Ref): void { - contextValue.sourceFunction = e + contextValue.sourceFunction = { func: e, props: {} } onChange(contextValue) } @@ -332,11 +332,11 @@ /> {/if} - {#if !forbidValue} - {/if}
-