Class CommandDefinition
Represent a command in a process scheme
Inheritance
↳ object
↳ BaseDefinition
↳ CommandDefinition
Inherited Members
BaseDefinition.DesignerSettings
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Model
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class CommandDefinition : BaseDefinition
Properties
InputParameters
List of references on parameters ParameterDefinitionReference
Declarationpublic List<ParameterDefinitionReference> InputParameters { get; set; }
Type | Description |
---|---|
List<ParameterDefinitionReference> |
Comment
Comment
Declarationpublic string Comment { get; set; }
Type | Description |
---|---|
string |
Methods
Create(string)
Create CommandDefinition object
Declarationpublic static CommandDefinition Create(string name)
Type | Name | Description |
---|---|---|
string | name | Name of the command |
Type | Description |
---|---|
CommandDefinition |
AddParameterRef(ParameterDefinitionReference, ParameterDefinition)
Add the reference on the parameter to InputParameters collection
Declarationpublic void AddParameterRef(ParameterDefinitionReference parameterDefinitionReference, ParameterDefinition parameter)
Type | Name | Description |
---|---|---|
ParameterDefinitionReference | parameterDefinitionReference | Reference to parameter definition |
ParameterDefinition | parameter | Parameter definition |
AddParameterRef(string, bool, string, ParameterDefinition)
Add the reference on the parameter to InputParameters collection
Declaration[Obsolete("Use AddParameterRef (ParameterDefinitionReference parameterDefinitionReference, ParameterDefinition parameter).")]
public void AddParameterRef(string name, bool isRequired, string defaultValue, ParameterDefinition parameter)
Type | Name | Description |
---|---|---|
string | name | Name of the reference |
bool | isRequired | Indicates that the parameter is required |
string | defaultValue | JSON serialized default value or string |
ParameterDefinition | parameter | Parameter definition |
AddParameterRef(string, ParameterDefinition)
Add the reference on the parameter to InputParameters collection
Declaration[Obsolete("Use AddParameterRef (ParameterDefinitionReference parameterDefinitionReference, ParameterDefinition parameter). It going to be removed since 1.6.6 version.")]
public void AddParameterRef(string name, ParameterDefinition parameter)
Type | Name | Description |
---|---|---|
string | name | Name of the reference |
ParameterDefinition | parameter | Parameter definition |
Clone()
Declarationpublic CommandDefinition Clone()
Type | Description |
---|---|
CommandDefinition |
Clone(List<ParameterDefinition>)
Declarationpublic CommandDefinition Clone(List<ParameterDefinition> parameters)
Type | Name | Description |
---|---|---|
List<ParameterDefinition> | parameters |
Type | Description |
---|---|
CommandDefinition |