diff --git a/src/activities/Elsa.Activities.RabbitMq/Activities/RabbitMqMessageReceived/RabbitMqMessageReceived.cs b/src/activities/Elsa.Activities.RabbitMq/Activities/RabbitMqMessageReceived/RabbitMqMessageReceived.cs index 5ec1a80ddb..94195b237c 100644 --- a/src/activities/Elsa.Activities.RabbitMq/Activities/RabbitMqMessageReceived/RabbitMqMessageReceived.cs +++ b/src/activities/Elsa.Activities.RabbitMq/Activities/RabbitMqMessageReceived/RabbitMqMessageReceived.cs @@ -36,7 +36,8 @@ public class RabbitMqMessageReceived : Activity Order = 3, UIHint = ActivityInputUIHints.Dictionary, DefaultSyntax = SyntaxNames.Json, - SupportedSyntaxes = new[] { SyntaxNames.Json })] + SupportedSyntaxes = new[] { SyntaxNames.Json,SyntaxNames.JavaScript })] + public Dictionary Headers { get; set; } = new Dictionary(); [ActivityInput( @@ -70,4 +71,4 @@ private IActivityExecutionResult ExecuteInternalAsync(ActivityExecutionContext c return Done(); } } -} \ No newline at end of file +} diff --git a/src/activities/Elsa.Activities.RabbitMq/Activities/SendRabbitMqMessage/SendRabbitMqMessage.cs b/src/activities/Elsa.Activities.RabbitMq/Activities/SendRabbitMqMessage/SendRabbitMqMessage.cs index c2a6a9babf..82995627d9 100644 --- a/src/activities/Elsa.Activities.RabbitMq/Activities/SendRabbitMqMessage/SendRabbitMqMessage.cs +++ b/src/activities/Elsa.Activities.RabbitMq/Activities/SendRabbitMqMessage/SendRabbitMqMessage.cs @@ -44,7 +44,7 @@ public SendRabbitMqMessage(IMessageSenderClientFactory messageSenderClientFactor Order = 3, UIHint = ActivityInputUIHints.Dictionary, DefaultSyntax = SyntaxNames.Json, - SupportedSyntaxes = new[] { SyntaxNames.Json })] + SupportedSyntaxes = new[] { SyntaxNames.Json, SyntaxNames.JavaScript })] public Dictionary Headers { get; set; } = new Dictionary(); [ActivityInput(