Beispiel #1
0
		public static CommandDefinition Create(string name)
		{
			CommandDefinition commandDefinition = new CommandDefinition()
			{
				Name = name,
				InputParameters = new List<ParameterDefinitionReference>()
			};
			return commandDefinition;
		}
Beispiel #2
0
		static DefaultDefinitions()
		{
			ParameterDefinition parameterDefinition = new ParameterDefinition()
			{
				Name = "ProcessId",
				Type = typeof(Guid),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterProcessId = parameterDefinition;
			ParameterDefinition parameterDefinition1 = new ParameterDefinition()
			{
				Name = "ParentProcessId",
				Type = typeof(Guid),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterParentProcessId = parameterDefinition1;
			ParameterDefinition parameterDefinition2 = new ParameterDefinition()
			{
				Name = "RootProcessId",
				Type = typeof(Guid),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterRootProcessId = parameterDefinition2;
			ParameterDefinition parameterDefinition3 = new ParameterDefinition()
			{
				Name = "PreviousState",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterPreviousState = parameterDefinition3;
			ParameterDefinition parameterDefinition4 = new ParameterDefinition()
			{
				Name = "CurrentState",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterCurrentState = parameterDefinition4;
			ParameterDefinition parameterDefinition5 = new ParameterDefinition()
			{
				Name = "PreviousStateForDirect",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterPreviousStateForDirect = parameterDefinition5;
			ParameterDefinition parameterDefinition6 = new ParameterDefinition()
			{
				Name = "PreviousStateForReverse",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterPreviousStateForReverse = parameterDefinition6;
			ParameterDefinition parameterDefinition7 = new ParameterDefinition()
			{
				Name = "PreviousActivity",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterPreviousActivity = parameterDefinition7;
			ParameterDefinition parameterDefinition8 = new ParameterDefinition()
			{
				Name = "CurrentActivity",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterCurrentActivity = parameterDefinition8;
			ParameterDefinition parameterDefinition9 = new ParameterDefinition()
			{
				Name = "PreviousActivityForDirect",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterPreviousActivityForDirect = parameterDefinition9;
			ParameterDefinition parameterDefinition10 = new ParameterDefinition()
			{
				Name = "PreviousActivityForReverse",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterPreviousActivityForReverse = parameterDefinition10;
			ParameterDefinition parameterDefinition11 = new ParameterDefinition()
			{
				Name = "CurrentCommand",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterCurrentCommand = parameterDefinition11;
			ParameterDefinition parameterDefinition12 = new ParameterDefinition()
			{
				Name = "ExecutedTimer",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterExecutedTimer = parameterDefinition12;
			ParameterDefinition parameterDefinition13 = new ParameterDefinition()
			{
				Name = "ExecutedActivityState",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterExecutedActivityState = parameterDefinition13;
			ParameterDefinition parameterDefinition14 = new ParameterDefinition()
			{
				Name = "ExecutedActivity",
				Type = typeof(ActivityDefinition),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterExecutedActivity = parameterDefinition14;
			ParameterDefinition parameterDefinition15 = new ParameterDefinition()
			{
				Name = "ExecutedTransition",
				Type = typeof(TransitionDefinition),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterExecutedTransition = parameterDefinition15;
			ParameterDefinition parameterDefinition16 = new ParameterDefinition()
			{
				Name = "IdentityId",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterIdentityId = parameterDefinition16;
			ParameterDefinition parameterDefinition17 = new ParameterDefinition()
			{
				Name = "ImpersonatedIdentityId",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterImpersonatedIdentityId = parameterDefinition17;
			ParameterDefinition parameterDefinition18 = new ParameterDefinition()
			{
				Name = "SchemeId",
				Type = typeof(Guid),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterSchemeId = parameterDefinition18;
			ParameterDefinition parameterDefinition19 = new ParameterDefinition()
			{
				Name = "SchemeCode",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterSchemeCode = parameterDefinition19;
			ParameterDefinition parameterDefinition20 = new ParameterDefinition()
			{
				Name = "IsPreExecution",
				Type = typeof(bool),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterIsPreExecution = parameterDefinition20;
			ParameterDefinition parameterDefinition21 = new ParameterDefinition()
			{
				Name = "StartTransitionalProcessActivity",
				Type = typeof(string),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterStartTransitionalProcessActivity = parameterDefinition21;
			ParameterDefinition parameterDefinition22 = new ParameterDefinition()
			{
				Name = "IdentityIds",
				Type = typeof(IEnumerable<string>),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterIdentityIds = parameterDefinition22;
			ParameterDefinition parameterDefinition23 = new ParameterDefinition()
			{
				Name = "IdentityIdsForCurrentActivity",
				Type = typeof(IEnumerable<string>),
				Purpose = ParameterPurpose.System
			};
			DefaultDefinitions.ParameterIdentityIdsForCurrentActivity = parameterDefinition23;
			DefaultDefinitions.CommandAuto = new CommandDefinition()
			{
				Name = "Auto"
			};
			DefaultDefinitions.CommandSetState = new CommandDefinition()
			{
				Name = "SetState"
			};
			DefaultDefinitions.CommandTimer = new CommandDefinition()
			{
				Name = "Timer"
			};
			List<ParameterDefinition> parameterDefinitions = new List<ParameterDefinition>()
			{
				DefaultDefinitions.ParameterProcessId,
				DefaultDefinitions.ParameterPreviousState,
				DefaultDefinitions.ParameterCurrentState,
				DefaultDefinitions.ParameterPreviousStateForDirect,
				DefaultDefinitions.ParameterPreviousStateForReverse,
				DefaultDefinitions.ParameterPreviousActivity,
				DefaultDefinitions.ParameterPreviousActivityForDirect,
				DefaultDefinitions.ParameterPreviousActivityForReverse,
				DefaultDefinitions.ParameterCurrentCommand,
				DefaultDefinitions.ParameterIdentityId,
				DefaultDefinitions.ParameterImpersonatedIdentityId,
				DefaultDefinitions.ParameterExecutedActivityState,
				DefaultDefinitions.ParameterExecutedActivity,
				DefaultDefinitions.ParameterExecutedTransition,
				DefaultDefinitions.ParameterCurrentActivity,
				DefaultDefinitions.ParameterSchemeId,
				DefaultDefinitions.ParameterIdentityIds,
				DefaultDefinitions.ParameterSchemeCode,
				DefaultDefinitions.ParameterIsPreExecution,
				DefaultDefinitions.ParameterExecutedTimer,
				DefaultDefinitions.ParameterIdentityIdsForCurrentActivity,
				DefaultDefinitions.ParameterParentProcessId,
				DefaultDefinitions.ParameterRootProcessId,
				DefaultDefinitions.ParameterStartTransitionalProcessActivity
			};
			DefaultDefinitions.DefaultParameters = parameterDefinitions;
		}