Skip to content

Commit

Permalink
forgot to call setup in several function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
EarliestFall988 committed Dec 9, 2023
1 parent 3709a7b commit 07c0518
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ public class ConvertFromDecimalToInteger : FunctionDefinition
public ConvertFromDecimalToInteger()
{
Name = nameof(ConvertFromDecimalToInteger);
Description = "Convert a decimal type variable to integer type variable. Rounds up if the value is 0.5 or greater.";
Setup();
DefineFunction();
}

void Setup()
{
Description = "Convert a decimal type variable to integer type variable. Rounds up if the value is 0.5 or greater.";
ExpectedParameters = new Dictionary<string, Parameter>()
{
{ "decimal", new Parameter("decimal", VariableIO.In) },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ public class ConvertFromIntegerToDecimal : FunctionDefinition
public ConvertFromIntegerToDecimal()
{
Name = nameof(ConvertFromIntegerToDecimal);
Description = "Convert an integer type variable to decimal type variable";
Setup();
DefineFunction();
}

void Setup()
{
Description = "Convert an integer type variable to decimal type variable";
ExpectedParameters = new Dictionary<string, Parameter>()
{
{ "integer", new Parameter("integer", VariableIO.In) },
Expand Down
2 changes: 2 additions & 0 deletions State Machine/Function Definitions/Respond.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ public class Respond : FunctionDefinition
public Respond()
{
Name = nameof(Respond);
Setup();
DefineFunction();
}

void Setup()
{
Description = "Responds with the data provided and terminates the process.";
ExpectedParameters = new Dictionary<string, Parameter>()
{
{ "data", new Parameter("any") }
Expand Down
2 changes: 1 addition & 1 deletion State Machine/Function Definitions/WM/GetProjects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected override void DefineFunction()
if (projects == null)
projects = new ProjectsListResult();

Set("out", projects.projects);
Set("result", projects.projects);
return 1;
}
catch (Exception ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class TotalNumberOfProjects : FunctionDefinition
public TotalNumberOfProjects()
{
Name = nameof(TotalNumberOfProjects);
Setup();
DefineFunction();
}

Expand Down

0 comments on commit 07c0518

Please sign in to comment.