Skip to content

Commit

Permalink
namespace/project rename
Browse files Browse the repository at this point in the history
renaming project and namespace to BPMNEngine
  • Loading branch information
roger-castaldo committed Jun 15, 2023
1 parent 39b1571 commit 1a3739e
Show file tree
Hide file tree
Showing 253 changed files with 653 additions and 653 deletions.
Binary file not shown.
Binary file not shown.
Binary file added BpmEngine/.vs/BPMNEngine/v17/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed BpmEngine/.vs/BpmEngine/v15/.suo
Binary file not shown.
Empty file.
Binary file not shown.
Binary file removed BpmEngine/.vs/BpmEngine/v17/.futdcache.v2
Binary file not shown.
Binary file removed BpmEngine/.vs/BpmEngine/v17/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified BpmEngine/.vs/ProjectEvaluation/bpmengine.metadata.v6.1
Binary file not shown.
Binary file modified BpmEngine/.vs/ProjectEvaluation/bpmengine.projects.v6.1
Binary file not shown.
4 changes: 2 additions & 2 deletions BpmEngine/Attributes/AttributeRegex.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using BpmEngine.Elements;
using BPMNEngine.Elements;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace BpmEngine.Attributes
namespace BPMNEngine.Attributes
{
[AttributeUsage(AttributeTargets.Class,AllowMultiple=true,Inherited=true)]
internal class AttributeRegex : Attribute
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/Attributes/RequiredAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace BpmEngine.Attributes
namespace BPMNEngine.Attributes
{
[AttributeUsage(AttributeTargets.Class,AllowMultiple=true,Inherited=true)]
internal class RequiredAttribute : Attribute
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/Attributes/ValidParentAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace BpmEngine.Attributes
namespace BPMNEngine.Attributes
{
[AttributeUsage(AttributeTargets.Class,AllowMultiple=true,Inherited =true)]
internal class ValidParentAttribute : Attribute
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/Attributes/XMLTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace BpmEngine.Attributes
namespace BPMNEngine.Attributes
{
[AttributeUsage(AttributeTargets.Class,Inherited=false,AllowMultiple=false)]
internal class XMLTag : Attribute
Expand Down
4 changes: 2 additions & 2 deletions BpmEngine/BpmEngine.csproj → BpmEngine/BPMNEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<RepositoryUrl>https://github.com/roger-castaldo/BPMEngine</RepositoryUrl>
<PackageTags>BPMN</PackageTags>
<PackageReleaseNotes>Major revision to a new library with breaking changes, including the concept of a process instance and creating named parameters for supplying all delegates.</PackageReleaseNotes>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<AssemblyVersion>3.0.0</AssemblyVersion>
<FileVersion>3.0.0</FileVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/BPMEngine.sln → BpmEngine/BPMNEngine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32825.248
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BpmEngine", "BpmEngine.csproj", "{7969089C-2A9C-4821-B7E9-77CF6E9E98D1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BPMNEngine", "BPMNEngine.csproj", "{7969089C-2A9C-4821-B7E9-77CF6E9E98D1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTest", "..\UnitTest\UnitTest.csproj", "{25AF2381-DB41-418D-B0D4-F7BA5129EF6B}"
EndProject
Expand Down
54 changes: 27 additions & 27 deletions BpmEngine/BusinessProcess.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Graphics.Skia;
using BpmEngine.Attributes;
using BpmEngine.DelegateContainers;
using BpmEngine.Drawing;
using BpmEngine.Elements;
using BpmEngine.Elements.Collaborations;
using BpmEngine.Elements.Processes;
using BpmEngine.Elements.Processes.Events;
using BpmEngine.Elements.Processes.Gateways;
using BpmEngine.Elements.Processes.Tasks;
using BpmEngine.Interfaces;
using BpmEngine.State;
using BPMNEngine.Attributes;
using BPMNEngine.DelegateContainers;
using BPMNEngine.Drawing;
using BPMNEngine.Elements;
using BPMNEngine.Elements.Collaborations;
using BPMNEngine.Elements.Processes;
using BPMNEngine.Elements.Processes.Events;
using BPMNEngine.Elements.Processes.Gateways;
using BPMNEngine.Elements.Processes.Tasks;
using BPMNEngine.Interfaces;
using BPMNEngine.State;
using SkiaSharp;
using System;
using System.Collections;
Expand All @@ -25,7 +25,7 @@
using System.Threading.Tasks;
using System.Xml;

namespace BpmEngine
namespace BPMNEngine
{
/// <summary>
/// This class is the primary class for the library. It implements a Business Process by constructing the object using a BPMN 2.0 compliant definition.
Expand Down Expand Up @@ -171,7 +171,7 @@ internal void HandleTaskEmission(ProcessInstance instance, ITask task, object da
IEnumerable<Exception> exceptions = Array.Empty<Exception>();
_doc = new XmlDocument();
_doc.LoadXml(doc.OuterXml);
BpmEngine.ElementTypeCache elementMapCache = new BpmEngine.ElementTypeCache();
var elementMapCache = new BPMNEngine.ElementTypeCache();
DateTime start = DateTime.Now;
WriteLogLine((IElement)null,LogLevels.Info,new StackFrame(1,true),DateTime.Now,"Producing new Business Process from XML Document");
_components = new List<object>();
Expand Down Expand Up @@ -311,7 +311,7 @@ private IImage _Diagram(bool outputVariables, ProcessState state)
IImage ret = null;
try
{
var image = BpmEngine.Elements.Diagram.ProduceImage((int)Math.Ceiling(width),(int)Math.Ceiling(height));
var image = Elements.Diagram.ProduceImage((int)Math.Ceiling(width),(int)Math.Ceiling(height));
var surface = image.Canvas;
surface.FillColor=Colors.White;
surface.FillRectangle(new Rect(0, 0, width, height));
Expand All @@ -334,14 +334,14 @@ private IImage _Diagram(bool outputVariables, ProcessState state)

private IImage _ProduceVariablesImage(ProcessState state)
{
var image = BpmEngine.Elements.Diagram.ProduceImage(1,1);
var image = Elements.Diagram.ProduceImage(1,1);
var canvas = image.Canvas;
SizeF sz = canvas.GetStringSize("Variables", BpmEngine.Elements.Diagram.DefaultFont, BpmEngine.Elements.Diagram.FONT_SIZE);
SizeF sz = canvas.GetStringSize("Variables", Elements.Diagram.DefaultFont, Elements.Diagram.FONT_SIZE);
int varHeight = (int)sz.Height + 2;
var keys = state[null];
varHeight+=keys.Sum(key => (int)canvas.GetStringSize(key, BpmEngine.Elements.Diagram.DefaultFont, BpmEngine.Elements.Diagram.FONT_SIZE).Height + 2);
varHeight+=keys.Sum(key => (int)canvas.GetStringSize(key, Elements.Diagram.DefaultFont, Elements.Diagram.FONT_SIZE).Height + 2);

image = BpmEngine.Elements.Diagram.ProduceImage(_VARIABLE_IMAGE_WIDTH, varHeight);
image = Elements.Diagram.ProduceImage(_VARIABLE_IMAGE_WIDTH, varHeight);
var surface = image.Canvas;
surface.FillColor = Colors.White;
surface.FillRectangle(0, 0, image.Width, image.Height);
Expand All @@ -359,14 +359,14 @@ private IImage _ProduceVariablesImage(ProcessState state)
keys.ForEach(key =>
{
string label = key;
SizeF szLabel = canvas.GetStringSize(label, BpmEngine.Elements.Diagram.DefaultFont, BpmEngine.Elements.Diagram.FONT_SIZE);
SizeF szLabel = canvas.GetStringSize(label, Elements.Diagram.DefaultFont, Elements.Diagram.FONT_SIZE);
while (szLabel.Width > _VARIABLE_NAME_WIDTH)
{
if (label.EndsWith("..."))
label = label.Substring(0, label.Length - 4) + "...";
else
label = label.Substring(0, label.Length - 1) + "...";
szLabel = canvas.GetStringSize(label, BpmEngine.Elements.Diagram.DefaultFont, BpmEngine.Elements.Diagram.FONT_SIZE);
szLabel = canvas.GetStringSize(label, Elements.Diagram.DefaultFont, Elements.Diagram.FONT_SIZE);
}
StringBuilder val = new StringBuilder();
if (state[null, key] != null)
Expand All @@ -387,14 +387,14 @@ private IImage _ProduceVariablesImage(ProcessState state)
val.Append(state[null, key].ToString());
}
var sval = val.ToString();
Size szValue = canvas.GetStringSize(sval, BpmEngine.Elements.Diagram.DefaultFont, BpmEngine.Elements.Diagram.FONT_SIZE);
Size szValue = canvas.GetStringSize(sval, Elements.Diagram.DefaultFont, Elements.Diagram.FONT_SIZE);
if (szValue.Width > _VARIABLE_VALUE_WIDTH)
{
if (sval.EndsWith("..."))
sval = sval.Substring(0, sval.Length - 4) + "...";
else
sval = sval.Substring(0, sval.Length - 1) + "...";
canvas.GetStringSize(sval, BpmEngine.Elements.Diagram.DefaultFont, BpmEngine.Elements.Diagram.FONT_SIZE);
canvas.GetStringSize(sval, Elements.Diagram.DefaultFont, Elements.Diagram.FONT_SIZE);
}
surface.DrawString(label, 2, curY, HorizontalAlignment.Left);
surface.DrawString(sval, 2+_VARIABLE_NAME_WIDTH, curY, HorizontalAlignment.Left);
Expand All @@ -407,7 +407,7 @@ private IImage _ProduceVariablesImage(ProcessState state)
private IImage _AppendVariables(IImage diagram,ProcessState state)
{
var vmap = _ProduceVariablesImage(state);
var ret = BpmEngine.Elements.Diagram.ProduceImage(
var ret = Elements.Diagram.ProduceImage(
(int)Math.Ceiling(diagram.Width + _DEFAULT_PADDING + vmap.Width),
(int)Math.Ceiling(Math.Max(diagram.Height, vmap.Height + _DEFAULT_PADDING))
);
Expand Down Expand Up @@ -664,7 +664,7 @@ private void _ProcessTask(ProcessInstance instance,string sourceID, ATask tsk)
try
{
ProcessVariablesContainer variables = new ProcessVariablesContainer(tsk.id, instance);
BpmEngine.Tasks.ExternalTask task =null;
Tasks.ExternalTask task =null;
switch (tsk.GetType().Name)
{
case "BusinessRuleTask":
Expand All @@ -674,7 +674,7 @@ private void _ProcessTask(ProcessInstance instance,string sourceID, ATask tsk)
case "Task":
case "ScriptTask":
case "CallActivity":
task = new BpmEngine.Tasks.ExternalTask(tsk, variables, instance);
task = new Tasks.ExternalTask(tsk, variables, instance);
break;
}
ProcessTask delTask = null;
Expand All @@ -684,7 +684,7 @@ private void _ProcessTask(ProcessInstance instance,string sourceID, ATask tsk)
delTask = instance.Delegates.Tasks.ProcessBusinessRuleTask;
break;
case "ManualTask":
_TriggerDelegateAsync(instance.Delegates.Tasks.BeginManualTask,new object[] { new BpmEngine.Tasks.ManualTask(tsk, variables, instance) });
_TriggerDelegateAsync(instance.Delegates.Tasks.BeginManualTask,new object[] { new Tasks.ManualTask(tsk, variables, instance) });
break;
case "ReceiveTask":
delTask = instance.Delegates.Tasks.ProcessRecieveTask;
Expand All @@ -705,7 +705,7 @@ private void _ProcessTask(ProcessInstance instance,string sourceID, ATask tsk)
delTask = instance.Delegates.Tasks.CallActivity;
break;
case "UserTask":
_TriggerDelegateAsync(instance.Delegates.Tasks.BeginUserTask,new object[] { new BpmEngine.Tasks.UserTask(tsk, variables, instance) });
_TriggerDelegateAsync(instance.Delegates.Tasks.BeginUserTask,new object[] { new Tasks.UserTask(tsk, variables, instance) });
break;
}
if (delTask!=null)
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;
using System.Diagnostics.CodeAnalysis;

namespace BpmEngine
namespace BPMNEngine
{
[ExcludeFromCodeCoverage]
internal static class Constants
Expand Down
4 changes: 2 additions & 2 deletions BpmEngine/DateString.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using BpmEngine.Interfaces;
using BPMNEngine.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace BpmEngine
namespace BPMNEngine
{
internal class DateString
{
Expand Down
6 changes: 3 additions & 3 deletions BpmEngine/DelegateContainer.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using BpmEngine.DelegateContainers;
using BpmEngine.Interfaces;
using BPMNEngine.DelegateContainers;
using BPMNEngine.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace BpmEngine
namespace BPMNEngine
{
internal class DelegateContainer
{
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/DelegateContainers/ProcessEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace BpmEngine.DelegateContainers
namespace BPMNEngine.DelegateContainers
{
/// <summary>
/// This class is used to house all the event based delegates for a business process.
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/DelegateContainers/ProcessLogging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace BpmEngine.DelegateContainers
namespace BPMNEngine.DelegateContainers
{
/// <summary>
/// This class is used to house all the Logging delegates for a business process.
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/DelegateContainers/ProcessTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace BpmEngine.DelegateContainers
namespace BPMNEngine.DelegateContainers
{
/// <summary>
/// This class is used to house all the Tasks delegates for a business process.
Expand Down
4 changes: 2 additions & 2 deletions BpmEngine/DelegateContainers/StepValidations.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using BpmEngine.Interfaces;
using BPMNEngine.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BpmEngine.DelegateContainers
namespace BPMNEngine.DelegateContainers
{
/// <summary>
/// This class is used to house all the validation delegates for a business process.
Expand Down
4 changes: 2 additions & 2 deletions BpmEngine/Delegates.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using BpmEngine.Interfaces;
using BPMNEngine.Interfaces;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using System.Xml;

namespace BpmEngine
namespace BPMNEngine
{
#region Ons
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion BpmEngine/Drawing/AnimatedFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;

namespace BpmEngine.Drawing
namespace BPMNEngine.Drawing
{
internal class AnimatedFrame : IDisposable
{
Expand Down
4 changes: 2 additions & 2 deletions BpmEngine/Drawing/AnimatedPNG.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Microsoft.Maui.Graphics;
using BpmEngine.Elements;
using BPMNEngine.Elements;
using SkiaSharp;
using System;
using System.Collections.Generic;
Expand All @@ -8,7 +8,7 @@
using System.Text;
using System.Threading.Tasks;

namespace BpmEngine.Drawing
namespace BPMNEngine.Drawing
{
internal class AnimatedPNG : IDisposable
{
Expand Down
6 changes: 3 additions & 3 deletions BpmEngine/Drawing/IRenderingElement.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Microsoft.Maui.Graphics;
using BpmEngine.Elements;
using BpmEngine.State;
using BPMNEngine.Elements;
using BPMNEngine.State;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BpmEngine.Drawing
namespace BPMNEngine.Drawing
{
internal interface IRenderingElement
{
Expand Down
6 changes: 3 additions & 3 deletions BpmEngine/Drawing/IconGraphic.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using Microsoft.Maui.Graphics;
using BpmEngine.Drawing.Icons;
using BPMNEngine.Drawing.Icons;

using BpmEngine.Elements.Diagrams;
using BPMNEngine.Elements.Diagrams;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace BpmEngine.Drawing
namespace BPMNEngine.Drawing
{
internal static class IconGraphic
{
Expand Down
6 changes: 3 additions & 3 deletions BpmEngine/Drawing/Icons/AIcon.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Graphics.Skia;
using BpmEngine.Drawing.Icons.IconParts;
using BpmEngine.Elements;
using BPMNEngine.Drawing.Icons.IconParts;
using BPMNEngine.Elements;
using System.Collections.Generic;

namespace BpmEngine.Drawing.Icons
namespace BPMNEngine.Drawing.Icons
{
internal abstract class AIcon
{
Expand Down
4 changes: 2 additions & 2 deletions BpmEngine/Drawing/Icons/Events/CompensationEndEvent.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using BpmEngine.Drawing.Icons.IconParts;
using BPMNEngine.Drawing.Icons.IconParts;
using System;
using System.Collections.Generic;
using System.Text;

namespace BpmEngine.Drawing.Icons.Events
namespace BPMNEngine.Drawing.Icons.Events
{
[IconTypeAttribute(Elements.Diagrams.BPMIcons.CompensationEndEvent)]
internal class CompensationEndEvent : AIcon
Expand Down

0 comments on commit 1a3739e

Please sign in to comment.