Show / Hide Table of Contents

Class ProcessModel

Provides access to the values of process instance parameters and methods of business process elements with user's scripts.

Inheritance
System.Object
ProcessModel
Implements
IProcessModel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public class ProcessModel : IProcessModel

Constructors

ProcessModel(Process)

Declaration
protected ProcessModel(Process process)
Parameters
Type Name Description
Process process

Properties

UserConnection

Returns the user connection.

Declaration
protected UserConnection UserConnection { get; }
Property Value
Type Description
UserConnection

The user connection.

Methods

AddScriptTaskMethod(String, Action<Entity>)

Declaration
protected void AddScriptTaskMethod(string methodName, Action<Entity> method)
Parameters
Type Name Description
System.String methodName
System.Action<Entity> method

AddScriptTaskMethod(String, Func<ProcessExecutingContext, Boolean>)

Declaration
protected void AddScriptTaskMethod(string methodName, Func<ProcessExecutingContext, bool> method)
Parameters
Type Name Description
System.String methodName
System.Func<ProcessExecutingContext, System.Boolean> method

CreateTempFile()

Creates a temp file.

Declaration
protected IFile CreateTempFile()
Returns
Type Description
IFile

An instance of the IFile type.

Get<T>(String)

Declaration
protected T Get<T>(string propertyPath)
Parameters
Type Name Description
System.String propertyPath
Returns
Type Description
T
Type Parameters
Name Description
T

GetAfterActivitySaveMethod(String)

Declaration
public Action<Entity> GetAfterActivitySaveMethod(string methodName)
Parameters
Type Name Description
System.String methodName
Returns
Type Description
System.Action<Entity>

GetScriptTaskMethod(String)

Declaration
public Func<ProcessExecutingContext, bool> GetScriptTaskMethod(string methodName)
Parameters
Type Name Description
System.String methodName
Returns
Type Description
System.Func<ProcessExecutingContext, System.Boolean>

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.

Set<T>(String, T)

Declaration
protected void Set<T>(string propertyPath, T value)
Parameters
Type Name Description
System.String propertyPath
T value
Type Parameters
Name Description
T

Implements

IProcessModel

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
In This Article
Back to top © 2021 Creatio. All rights reserved.