Skip to content

Commit 73258d2

Browse files
authored
Merge pull request #3 from navtech-io/develop
Develop
2 parents b008534 + c4d0841 commit 73258d2

File tree

4 files changed

+30
-11
lines changed

4 files changed

+30
-11
lines changed

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
1-
## Simpleflow
1+
2+
# Simpleflow
23

34
Simpleflow is a lightweight dynamic rule engine to build workflow with intuitive script concepts. Simpleflow allows access to the process objects or methods in script securely. Methods can be registered as activities with Simpleflow engine, which is extensible to enrich or monitor the execution flow. Simpleflow is secure and efficient to run dynamic rules and workflow.
45

56

67
[![NuGet version (Simpleflow)](https://img.shields.io/nuget/vpre/Simpleflow?style=for-the-badge)](https://www.nuget.org/packages/Simpleflow/) [![Github Workflow (Simpleflow)](https://img.shields.io/github/workflow/status/navtech-io/simpleflow/.NET?style=for-the-badge)](https://github.com/navtech-io/Simpleflow/actions)
78

8-
**Simpleflow Script**
9+
<img src="https://raw.githubusercontent.com/navtech-io/Simpleflow/develop/src/Simpleflow/PackageIcon.png" >
10+
11+
## Get Started
12+
13+
Install package via Nuget. Using the NuGet package manager console within Visual Studio run the following command:
14+
15+
```powershell
16+
Install-Package Simpleflow
17+
```
18+
19+
**Try following Simpleflow script:**
920

1021
```csharp
22+
using Simpleflow;
1123

1224
// Simpleflow Script
1325
var flowScript =
1426
@"
15-
let text = ""Hello, विश्वम्‌""
27+
let text = ""Hello, World! 🌄""
1628
let today = $GetCurrentDateTime ( timezone: ""Eastern Standard Time"" )
1729
1830
/* comment: check condition */
@@ -34,7 +46,7 @@ Console.WriteLine(result.Output["today"]);
3446
**Output**
3547

3648
```
37-
Hello, विश्वम्‌
49+
Hello, World! 🌄
3850
<current system date and time>
3951
```
4052
Please see [this](#examples) example with most of the simpleflow script features.
@@ -185,9 +197,10 @@ $<function_name>(param_name1: value1, param_name2: value2, ...)
185197
let d2 = $Date(m: 10, d:25, y: 2022 )
186198
let t1 = $Date(m: 10, d:25, y: 2022, h:13, mn:30 )
187199
```
188-
* $\color{#4686f2}{\$GetCurrentDate()}$
189-
* $\color{#4686f2}{\$GetCurrentTime()}$
190-
* $\color{#4686f2}{\$GetCurrentDateTime(timeZone: "")}$
200+
201+
* $\color{#4686f2}{\$GetCurrentDate()}$
202+
* $\color{#4686f2}{\$GetCurrentTime()}$
203+
* $\color{#4686f2}{\$GetCurrentDateTime(timeZone: "")}$
191204

192205
Check available list of time zones here: <br>
193206
Windows: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11#time-zones <br>

build/Build.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ class Build : NukeBuild
112112
.SetCopyright("navtech.io")
113113
.SetPackageProjectUrl("https://github.com/navtech-io/Simpleflow")
114114
.AddProperty("PackageLicenseExpression", "Apache-2.0")
115+
.AddProperty("PackageIcon", @"PackageIcon.png")
115116
.SetIncludeSymbols(true)
116-
.SetVersion("0.1.0-beta04" /*NuGetVersionCustom*/)
117+
.SetVersion("0.1.0-beta05" /*NuGetVersionCustom*/)
117118
.SetDescription("Lightweight rule engine")
118119
.SetPackageTags("Simpleflow.NET Workflow RuleEngine DynamicExpressionEvaluator")
119120
.SetNoDependencies(true)

src/Simpleflow/PackageIcon.png

2.53 KB
Loading

src/Simpleflow/Simpleflow.csproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
5+
<PackageIcon>PackageIcon.png</PackageIcon>
56
</PropertyGroup>
67

78
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
8-
<DocumentationFile>C:\Navtech\Opensource\Simpleflow\src\Simpleflow\Simpleflow.xml</DocumentationFile>
9+
<DocumentationFile>Simpleflow.xml</DocumentationFile>
910
</PropertyGroup>
1011

1112
<ItemGroup>
@@ -30,11 +31,15 @@
3031
</ItemGroup>
3132

3233
<ItemGroup>
33-
<EditorConfigFiles Remove="C:\Navtech\Opensource\Simpleflow\src\Simpleflow\.editorconfig" />
34+
<EditorConfigFiles Remove=".editorconfig" />
3435
</ItemGroup>
3536

3637
<ItemGroup>
37-
<None Include="C:\Navtech\Opensource\Simpleflow\src\Simpleflow\.editorconfig" />
38+
<None Include=".editorconfig" />
39+
</ItemGroup>
40+
41+
<ItemGroup>
42+
<None Include="PackageIcon.png" Pack="true" PackagePath="\" />
3843
</ItemGroup>
3944

4045
</Project>

0 commit comments

Comments
 (0)