Skip to content

Commit 5f28037

Browse files
opened up restrictions for the xml tags to allow more openness wrt xml tag prefixes
1 parent 93452ea commit 5f28037

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

Attributes/XMLTag.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ internal bool Matches(XmlPrefixMap map, string tagName)
3232
{
3333
if (tagName.ToLower() == ToString().ToLower())
3434
return true;
35-
else if (_prefix!=null)
35+
else if (tagName.ToLower() == _name.ToLower())
36+
return true;
37+
else if (_prefix != null)
3638
return map.isMatch(_prefix, _name, tagName);
3739
return false;
3840
}

BpmEngine.csproj

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
<TargetFrameworks>netstandard2.0;net452;net20</TargetFrameworks>
55
<RootNamespace>Org.Reddragonit.BpmEngine</RootNamespace>
66
<PackageId>Org.Reddragonit.BpmEngine</PackageId>
7-
<Version>1.9.6</Version>
7+
<Version>1.9.8</Version>
88
<Authors>Roger Castaldo</Authors>
99
<Description>A BPMN Engine written in .net. The engine attempts to read in a bpmn notation xml document defining both the process(s) as well as the diagrams. From here you can then load/unload the state, render the diagram in its current state or animated into a gif. Using the delegates for a process, you intercept and handle task and condition checking by reading additional xml held within flow and task objects.</Description>
1010
<PackageProjectUrl>https://github.com/roger-castaldo/BPMEngine</PackageProjectUrl>
1111
<PackageLicenseUrl>https://www.gnu.org/licenses/gpl-3.0.en.html</PackageLicenseUrl>
1212
<RepositoryUrl>https://github.com/roger-castaldo/BPMEngine</RepositoryUrl>
1313
<PackageTags>BPMN</PackageTags>
14-
<PackageReleaseNotes>migrated begininvoke calls to await task calls for .netstandard and 452</PackageReleaseNotes>
15-
<AssemblyVersion>1.9.6.0</AssemblyVersion>
16-
<FileVersion>1.9.6.0</FileVersion>
14+
<PackageReleaseNotes>updated package to loosen up loading restrictions by not checking for xml prefix in valid documents</PackageReleaseNotes>
15+
<AssemblyVersion>1.9.8.0</AssemblyVersion>
16+
<FileVersion>1.9.8.0</FileVersion>
1717
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1818
</PropertyGroup>
1919

@@ -47,16 +47,9 @@
4747
</ItemGroup>
4848

4949
<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
50-
<PackageReference Include="CoreCompat.System.Drawing" Version="1.0.0-beta006" />
51-
<PackageReference Include="System.CodeDom">
52-
<Version>4.4.0</Version>
53-
</PackageReference>
54-
</ItemGroup>
55-
56-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
57-
<PackageReference Include="Microsoft.CodeAnalysis.Compilers">
58-
<Version>2.7.0</Version>
59-
</PackageReference>
50+
<PackageReference Include="CoreCompat.System.Drawing" Version="[1.0.0-beta006,)" />
51+
<PackageReference Include="System.CodeDom" Version="[4.4.0,)" />
52+
<PackageReference Include="Microsoft.CodeAnalysis.Compilers" Version="[2.7.0,)" />
6053
</ItemGroup>
6154

6255
<ItemGroup>

ElementTypeCache.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ public void MapIdeals(XmlPrefixMap map)
4646
}
4747
}
4848
}
49+
else
50+
{
51+
foreach (String tag in ideals[prefix].Keys)
52+
{
53+
_cachedMaps.Add(string.Format("{0}:{1}", prefix, tag), ideals[prefix][tag]);
54+
_cachedMaps.Add(tag, ideals[prefix][tag]);
55+
}
56+
}
4957
}
5058
}
5159
}

0 commit comments

Comments
 (0)