From b1fac2e24d4e26f59df197b9c69e9da57d6bbaf3 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 27 Nov 2022 13:28:00 +0100 Subject: [PATCH] Fix input type name mapping --- .../components/activity-properties-editor.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/designer/elsa-workflows-designer/src/modules/workflow-definitions/components/activity-properties-editor.tsx b/src/designer/elsa-workflows-designer/src/modules/workflow-definitions/components/activity-properties-editor.tsx index c0fad5776..c947b688d 100644 --- a/src/designer/elsa-workflows-designer/src/modules/workflow-definitions/components/activity-properties-editor.tsx +++ b/src/designer/elsa-workflows-designer/src/modules/workflow-definitions/components/activity-properties-editor.tsx @@ -1,6 +1,6 @@ import {Component, Event, EventEmitter, h, Method, Prop, State} from '@stencil/core'; import {camelCase} from 'lodash'; -import {Activity, ActivityDescriptor, ActivityKind, ActivityOutput, InputDescriptor, OutputDescriptor, PropertyDescriptor, RenderActivityInputContext, RenderActivityPropsContext, TabChangedArgs, TabDefinition, Variable} from '../../../models'; +import {Activity, ActivityDescriptor, ActivityInput, ActivityKind, ActivityOutput, InputDescriptor, OutputDescriptor, PropertyDescriptor, RenderActivityInputContext, RenderActivityPropsContext, TabChangedArgs, TabDefinition, Variable} from '../../../models'; import {InputDriverRegistry} from "../../../services"; import {Container} from "typedi"; import {ActivityInputContext} from "../../../services/node-input-driver"; @@ -226,13 +226,15 @@ export class ActivityPropertiesEditor { const camelCasePropertyName = camelCase(propertyName); if (isWrapped) { - activity[camelCasePropertyName] = { - type: inputDescriptor.typeName, + const input: ActivityInput = { + typeName: inputDescriptor.typeName, expression: { type: syntax, value: propertyValue // TODO: The "value" field is currently hardcoded, but we should be able to be more flexible and potentially have different fields for a given syntax. } }; + + activity[camelCasePropertyName] = input; } else { activity[camelCasePropertyName] = propertyValue; }