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
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 |