# Interface IWorkflowEngineNetRestriction OptimaJet.Workflow.Core.License.IWorkflowEngineNetRestriction Defines the license restrictions returned by [WorkflowRuntime.GetLicenseRestrictions()](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/). Namespace: [OptimaJet.Workflow.Core.License](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.License/) ```csharp public interface IWorkflowEngineNetRestriction ``` ## Properties `int MaxNumberOfActivities { get; }` Gets the maximum number of activities permitted in a process scheme. `int MaxNumberOfTransitions { get; }` Gets the maximum number of transitions permitted in a process scheme. `int MaxNumberOfSchemes { get; }` Gets the maximum number of unique process scheme names permitted by the license. `int MaxNumberOfThreads { get; }` Gets the maximum number of concurrent workflow operations permitted by the license. `int MaxNumberOfCommands { get; }` Gets the maximum number of commands permitted in a process scheme. `bool? StrictCheck { get; }` Gets a value indicating whether license expiration is also checked against the current date and time. `bool? CommunityEdition { get; }` Gets a value indicating whether the current license is for the Community Edition. ## Methods `T GetRestriction(string restrictionName)` Gets the custom license restriction identified by `restrictionName`. ### Parameters | Name | Type | Description | | --- | --- | --- | | `restrictionName` | `String` | The name of the custom license restriction. | ### Returns | Type | Description | | --- | --- | | `{T}` | The restriction value converted to `T`, or the default value of `T` when the restriction is not defined. | ### Exceptions | Type | Description | | --- | --- | | `Exception` | The active license uses custom restrictions and `T` is not a supported type. | [Previous HelperRegex](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Helpers/HelperRegex/) [Next TimeHelper](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.License/TimeHelper/)