diff --git a/karavan-core/src/core/api/CamelUtil.ts b/karavan-core/src/core/api/CamelUtil.ts index e68e2ab3dee..993bb306cc4 100644 --- a/karavan-core/src/core/api/CamelUtil.ts +++ b/karavan-core/src/core/api/CamelUtil.ts @@ -215,7 +215,7 @@ export class CamelUtil { if (property.type === 'string' && !property.isArray && (value === undefined || !value.trim())) { result[0] = false; result[1].push(`${property.displayName} is required`); - } else if (property.type === 'ExpressionDefinition') { + } else if (['ExpressionSubElementDefinition', 'ExpressionDefinition'].includes(property.type)) { const expressionMeta = CamelMetadataApi.getCamelModelMetadataByClassName('ExpressionDefinition'); const expressionCheck = expressionMeta && value !== undefined && expressionMeta?.properties.some(ep => { const expValue = value[ep.name]; diff --git a/karavan-designer/public/example/demo.camel.yaml b/karavan-designer/public/example/demo.camel.yaml index 39337079ef9..cad0fb07dfd 100644 --- a/karavan-designer/public/example/demo.camel.yaml +++ b/karavan-designer/public/example/demo.camel.yaml @@ -9,16 +9,7 @@ steps: - aggregate: id: aggregate-bf73 - - to: - id: to-7baa - uri: jms - parameters: - destinationName: test - - marshal: - id: marshal-136a - json: - id: json-4655 - - unmarshal: - id: unmarshal-70d1 - json: - id: json-ecfe + correlationExpression: + groovy: + id: groovy-ed69 + expression: saasdsa \ No newline at end of file