|
|
|
@ -97,32 +97,49 @@ namespace DS.WMS.Core.TaskPlat
|
|
|
|
|
valStr = obj.ToString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var oldValue = configMatchCount[configItem.Id];
|
|
|
|
|
if (conditionItem.MatchType == 1)
|
|
|
|
|
{
|
|
|
|
|
if (valStr?.Equals(conditionItem.MatchValue, StringComparison.CurrentCultureIgnoreCase) == true)
|
|
|
|
|
{
|
|
|
|
|
configMatchCount[configItem.Id] = configMatchCount[configItem.Id] + 1;
|
|
|
|
|
configMatchCount[configItem.Id] = oldValue + 1;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
configMatchCount[configItem.Id] = oldValue - 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (conditionItem.MatchType == 2)
|
|
|
|
|
{
|
|
|
|
|
if (valStr?.Contains(conditionItem.MatchValue, StringComparison.CurrentCultureIgnoreCase) == true)
|
|
|
|
|
{
|
|
|
|
|
configMatchCount[configItem.Id] = configMatchCount[configItem.Id] + 1;
|
|
|
|
|
configMatchCount[configItem.Id] = oldValue + 1;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
configMatchCount[configItem.Id] = oldValue - 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (conditionItem.MatchType == 3)
|
|
|
|
|
{
|
|
|
|
|
if (valStr?.StartsWith(conditionItem.MatchValue, StringComparison.CurrentCultureIgnoreCase) == true)
|
|
|
|
|
{
|
|
|
|
|
configMatchCount[configItem.Id] = configMatchCount[configItem.Id] + 1;
|
|
|
|
|
configMatchCount[configItem.Id] = oldValue + 1;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
configMatchCount[configItem.Id] = oldValue - 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (conditionItem.MatchType == 4)
|
|
|
|
|
{
|
|
|
|
|
if (valStr?.EndsWith(conditionItem.MatchValue, StringComparison.CurrentCultureIgnoreCase) == true)
|
|
|
|
|
{
|
|
|
|
|
configMatchCount[configItem.Id] = configMatchCount[configItem.Id] + 1;
|
|
|
|
|
configMatchCount[configItem.Id] = oldValue + 1;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
configMatchCount[configItem.Id] = oldValue - 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -207,17 +224,19 @@ namespace DS.WMS.Core.TaskPlat
|
|
|
|
|
{
|
|
|
|
|
throw new Exception($"未找到指定流程配置,ExecuteModuleId:{configItem.ExecuteModuleId}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flowLogDetail.ModuleId = module.Id;
|
|
|
|
|
flowLogDetail.ModuleName = module.Name;
|
|
|
|
|
|
|
|
|
|
Assembly assembly;
|
|
|
|
|
if (module.AssemblyName!.StartsWith("DS.WMS.Core"))
|
|
|
|
|
{
|
|
|
|
|
//assembly = Assembly.GetEntryAssembly()!;
|
|
|
|
|
assembly = Assembly.GetExecutingAssembly();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
assembly = Assembly.Load(module.AssemblyName!);
|
|
|
|
|
}
|
|
|
|
|
//var interfaceType2 = assembly.GetType(module.InterfaceName!);
|
|
|
|
|
var interfaceType = assembly.DefinedTypes.FirstOrDefault(x => x.Name == module.InterfaceName!);
|
|
|
|
|
if (interfaceType == null)
|
|
|
|
|
{
|
|
|
|
|