Skip to content

Commit 423e63e

Browse files
committed
fix: changed type to object to allow any input, custome objects ect.
1 parent 12c98e9 commit 423e63e

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

src/WorkflowEngine.Core/Expressions/TriggerBodyFunction.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using ExpressionEngine;
1+
using ExpressionEngine;
22
using ExpressionEngine.Functions.Base;
33
using System;
44
using System.Collections.Generic;
@@ -10,15 +10,15 @@ namespace WorkflowEngine.Core.Expressions
1010
{
1111
public class TriggerBodyFunction : IFunction
1212
{
13-
private readonly TriggerOutputsFunction triggerOutputsFunction;
13+
private readonly TriggerOutputsFunction _triggerOutputsFunction;
1414

1515
public TriggerBodyFunction(TriggerOutputsFunction triggerOutputsFunction)
1616
{
17-
this.triggerOutputsFunction=triggerOutputsFunction;
17+
this._triggerOutputsFunction=triggerOutputsFunction;
1818
}
1919
public async ValueTask<ValueContainer> ExecuteFunction(params ValueContainer[] parameters)
2020
{
21-
var trigger = await triggerOutputsFunction.ExecuteFunction();
21+
var trigger = await _triggerOutputsFunction.ExecuteFunction();
2222

2323
return trigger["body"];
2424

src/WorkflowEngine.Core/ITrigger.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33

44
namespace WorkflowEngine.Core
@@ -8,16 +8,17 @@ public interface ITrigger
88
DateTimeOffset ScheduledTime { get; set; }
99
string Type { get; set; }
1010

11-
IDictionary<string, object> Inputs { get; set; }
11+
object Inputs { get; set; }
1212

1313
string Key { get; }
1414
}
15+
1516
public class Trigger : ITrigger
1617
{
1718
public DateTimeOffset ScheduledTime { get; set; }
1819
public string Type { get; set; }
1920

20-
public IDictionary<string, object> Inputs { get; set; } = new Dictionary<string, object>();
21+
public object Inputs { get; set; } = new Dictionary<string, object>();
2122

2223
public string Key { get; set; }
2324
}

src/WorkflowEngine.Core/WorkflowEngine.Core.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
<RepositoryUrl>https://github.com/delegateas/WorkflowEngine</RepositoryUrl>
1010
</PropertyGroup>
1111

12-
<ItemGroup>
12+
<ItemGroup Condition="$(UseEAVFromNuget) == 'false'">
13+
<ProjectReference Include="$(LocalExternalpath)/ExpressionEngine/ExpressionEngine/ExpressionEngine.csproj" />
14+
</ItemGroup>
15+
<ItemGroup Condition="$(UseEAVFromNuget) != 'false'">
1316
<PackageReference Include="Delegate.ExpressionEngine" Version="4.1.2" />
17+
</ItemGroup>
18+
<ItemGroup>
19+
1420
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
1521
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
1622
</ItemGroup>

0 commit comments

Comments
 (0)