Class ProcessUserTask
A User Task is a process element.
Inheritance
Implements
Inherited Members
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public class ProcessUserTask : ProcessActivity, IProcessDataSerializable, IHandler<ChangeProcessElementPerformerCommand>
Constructors
ProcessUserTask(UserConnection)
Initializes a new instance of the ProcessUserTask class.
Declaration
public ProcessUserTask(UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | The user connection. |
Properties
SchemaManager
Declaration
public override ISchemaManager SchemaManager { get; }
Property Value
Type | Description |
---|---|
ISchemaManager |
Overrides
SchemaManagerName
Declaration
public override string SchemaManagerName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
AfterActivitySaveScriptExecute(Entity)
Gets or sets function to execute after Activity saving.
Declaration
protected virtual void AfterActivitySaveScriptExecute(Entity activity)
Parameters
Type | Name | Description |
---|---|---|
Entity | activity |
AfterInternalExecute()
Declaration
protected override void AfterInternalExecute()
Overrides
CreateTempFile()
Creates a temp file.
Declaration
protected IFile CreateTempFile()
Returns
Type | Description |
---|---|
IFile | An instance of the IFile type. |
Get<T>(String)
Gets the property value by specified path.
Declaration
protected T Get<T>(string propertyPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyPath | The property path. |
Returns
Type | Description |
---|---|
T | The property value |
Type Parameters
Name | Description |
---|---|
T | Type of the property value. |
GetParameterValue(String)
Gets the parameter value.
Declaration
public object GetParameterValue(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | Name of the parameter. |
Returns
Type | Description |
---|---|
System.Object | The value. |
GetParameterValue<TValue>(String, TValue)
Gets the parameter value.
Declaration
public TValue GetParameterValue<TValue>(string name, TValue defValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Parameter name. |
TValue | defValue | Default value. |
Returns
Type | Description |
---|---|
TValue |
Type Parameters
Name | Description |
---|---|
TValue | Value type. |
GetPropertiesData(Boolean)
Declaration
public override string GetPropertiesData(bool writeFlowElements = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | writeFlowElements |
Returns
Type | Description |
---|---|
System.String |
Overrides
GetRuntimeCaption()
Returns runtime caption value for current user task.
Declaration
public virtual string GetRuntimeCaption()
Returns
Type | Description |
---|---|
System.String |
GetTempFile(Guid)
Gets a temp file.
Declaration
protected IFile GetTempFile(Guid fileId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | fileId | File identifier. |
Returns
Type | Description |
---|---|
IFile | An instance of the IFile type. |
InteractWithUser(ProcessExecutingContext, Boolean, Boolean)
Executes user interaction for current user task.
Declaration
public void InteractWithUser(ProcessExecutingContext context, bool skipPerformerCheck, bool showExecutionPage)
Parameters
Type | Name | Description |
---|---|---|
ProcessExecutingContext | context | Process executing context. |
System.Boolean | skipPerformerCheck | Flag indicates that forces interaction for any performer. |
System.Boolean | showExecutionPage | Flag indicates that execution page should be displayed. |
InternalInteractWithUser(ProcessExecutingContext, Boolean, Boolean)
Executes user interaction for current user task.
Declaration
protected virtual void InternalInteractWithUser(ProcessExecutingContext context, bool skipPerformerCheck, bool showExecutionPage)
Parameters
Type | Name | Description |
---|---|---|
ProcessExecutingContext | context | Process executing context. |
System.Boolean | skipPerformerCheck | Flag indicates that forces interaction for any performer. |
System.Boolean | showExecutionPage | Flag indicates that execution page should be displayed. |
OnCanceled()
Declaration
protected override void OnCanceled()
Overrides
OnExecuted(ProcessActivityAfterEventArgs)
Declaration
protected override void OnExecuted(ProcessActivityAfterEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
ProcessActivityAfterEventArgs | e |
Overrides
Set<T>(String, T)
Sets the property value by specified path.
Declaration
protected void Set<T>(string propertyPath, T value)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyPath | The property path. |
T | value | The value. |
Type Parameters
Name | Description |
---|---|
T | Type of the property value. |
WritePropertiesData(DataWriter, Boolean)
Declaration
public override void WritePropertiesData(DataWriter writer, bool writeFlowElements = true)
Parameters
Type | Name | Description |
---|---|---|
DataWriter | writer | |
System.Boolean | writeFlowElements |