Skip to content

Commit 43c3100

Browse files
committed
Redis provider source code
1 parent 4f07a64 commit 43c3100

7 files changed

Lines changed: 1227 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
3+
// ReSharper disable once CheckNamespace
4+
namespace OptimaJet.Workflow.Redis
5+
{
6+
public class WorkflowProcessInstance
7+
{
8+
9+
public string ActivityName { get; set; }
10+
public Guid Id { get; set; }
11+
public bool IsDeterminingParametersChanged { get; set; }
12+
public string PreviousActivity { get; set; }
13+
public string PreviousActivityForDirect { get; set; }
14+
public string PreviousActivityForReverse { get; set; }
15+
public string PreviousState { get; set; }
16+
public string PreviousStateForDirect { get; set; }
17+
public string PreviousStateForReverse { get; set; }
18+
public Guid? SchemeId { get; set; }
19+
public string StateName { get; set; }
20+
public Guid? ParentProcessId { get; set; }
21+
public Guid RootProcessId { get; set; }
22+
}
23+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
4+
// ReSharper disable once CheckNamespace
5+
namespace OptimaJet.Workflow.Redis
6+
{
7+
public class WorkflowProcessScheme
8+
{
9+
public string DefiningParameters { get; set; }
10+
public string SchemeCode { get; set; }
11+
public string Scheme { get; set; }
12+
public Guid? RootSchemeId { get; set; }
13+
public string RootSchemeCode { get; set; }
14+
public List<string> AllowedActivities { get; set; }
15+
public string StartingTransition { get; set; }
16+
}
17+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
3+
// ReSharper disable once CheckNamespace
4+
namespace OptimaJet.Workflow.Redis
5+
{
6+
public class WorkflowProcessTransitionHistory
7+
{
8+
public string ActorIdentityId { get; set; }
9+
public string ExecutorIdentityId { get; set; }
10+
public string FromActivityName { get; set; }
11+
public string FromStateName { get; set; }
12+
public bool IsFinalised { get; set; }
13+
public string ToActivityName { get; set; }
14+
public string ToStateName { get; set; }
15+
public string TransitionClassifier { get; set; }
16+
public DateTime TransitionTime { get; set; }
17+
public string TriggerName { get; set; }
18+
}
19+
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{5693C119-375B-47ED-86D6-4886331743C9}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>OptimaJet.Workflow.Redis</RootNamespace>
11+
<AssemblyName>OptimaJet.Workflow.Redis</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
15+
<RestorePackages>true</RestorePackages>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>..\DLL\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<PropertyGroup>
35+
<SignAssembly>true</SignAssembly>
36+
</PropertyGroup>
37+
<PropertyGroup>
38+
<AssemblyOriginatorKeyFile>Workflow.snk</AssemblyOriginatorKeyFile>
39+
</PropertyGroup>
40+
<ItemGroup>
41+
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
42+
<SpecificVersion>False</SpecificVersion>
43+
<HintPath>..\DLL\Newtonsoft.Json.dll</HintPath>
44+
</Reference>
45+
<Reference Include="StackExchange.Redis.StrongName, Version=1.1.605.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46, processorArchitecture=MSIL">
46+
<HintPath>..\packages\StackExchange.Redis.StrongName.1.1.605\lib\net45\StackExchange.Redis.StrongName.dll</HintPath>
47+
<Private>True</Private>
48+
</Reference>
49+
<Reference Include="System" />
50+
<Reference Include="System.Core" />
51+
<Reference Include="System.IO.Compression" />
52+
<Reference Include="System.Xml.Linq" />
53+
<Reference Include="System.Data.DataSetExtensions" />
54+
<Reference Include="Microsoft.CSharp" />
55+
<Reference Include="System.Data" />
56+
<Reference Include="System.Xml" />
57+
</ItemGroup>
58+
<ItemGroup>
59+
<Compile Include="Models\WorkflowProcessInstance.cs" />
60+
<Compile Include="Models\WorkflowProcessScheme.cs" />
61+
<Compile Include="Models\WorkflowProcessTransitionHistory.cs" />
62+
<Compile Include="Properties\AssemblyInfo.cs" />
63+
<Compile Include="RedisProvider.cs" />
64+
</ItemGroup>
65+
<ItemGroup>
66+
<None Include="packages.config" />
67+
<None Include="Workflow.snk" />
68+
</ItemGroup>
69+
<ItemGroup>
70+
<ProjectReference Include="..\OptimaJet.Workflow.Core\OptimaJet.Workflow.Core.csproj">
71+
<Project>{d92ef824-b99d-4955-8078-aa8ece917187}</Project>
72+
<Name>OptimaJet.Workflow.Core</Name>
73+
</ProjectReference>
74+
</ItemGroup>
75+
<ItemGroup />
76+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
77+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
78+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
79+
<PropertyGroup>
80+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
81+
</PropertyGroup>
82+
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
83+
</Target>
84+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
85+
Other similar extension points exist, see Microsoft.Common.targets.
86+
<Target Name="BeforeBuild">
87+
</Target>
88+
<Target Name="AfterBuild">
89+
</Target>
90+
-->
91+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("OptimaJet.Workflow.Redis")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("OptimaJet.Workflow.Redis")]
13+
[assembly: AssemblyCopyright("Copyright © 2016")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("0a7b51a3-635f-4b3e-95cd-fc17439bfcd3")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.5.6.0")]
36+
[assembly: AssemblyFileVersion("1.5.6.0")]

0 commit comments

Comments
 (0)