mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 12:03:51 +08:00
Fixing some typos in Orchard.Workflows
Work Items: 19535, 19534 --HG-- branch : 1.x
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace Orchard.Workflows.Models {
|
||||
public enum ActivityState {
|
||||
Excuted,
|
||||
Executing
|
||||
}
|
||||
}
|
||||
@@ -145,7 +145,6 @@
|
||||
<Compile Include="Drivers\WorkflowDriver.cs" />
|
||||
<Compile Include="Handlers\ContentHandler.cs" />
|
||||
<Compile Include="Handlers\WorkflowHandler.cs" />
|
||||
<Compile Include="Models\ActivityState.cs" />
|
||||
<Compile Include="Models\AwaitingActivityRecord.cs" />
|
||||
<Compile Include="Models\CancellationToken.cs" />
|
||||
<Compile Include="Models\ActivityContext.cs" />
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace Orchard.Workflows.Services {
|
||||
return new ActivityContext {
|
||||
Record = activityRecord,
|
||||
Activity = _activitiesManager.GetActivityByName(activityRecord.Name),
|
||||
State = new Lazy<dynamic>(() => GetSate(activityRecord.State, tokens))
|
||||
State = new Lazy<dynamic>(() => GetState(activityRecord.State, tokens))
|
||||
};
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ namespace Orchard.Workflows.Services {
|
||||
}
|
||||
}
|
||||
|
||||
private dynamic GetSate(string state, IDictionary<string, object> tokens) {
|
||||
private dynamic GetState(string state, IDictionary<string, object> tokens) {
|
||||
if (!String.IsNullOrWhiteSpace(state)) {
|
||||
var formatted = JsonConvert.DeserializeXNode(state, "Root").ToString();
|
||||
var tokenized = _tokenizer.Replace(formatted, tokens);
|
||||
|
||||
Reference in New Issue
Block a user