Class ProcessScriptTask
A Script Task is a process element. When a process execution arrives at the Script Task, the corresponding script is executed.
Implements
Inherited Members
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 ProcessScriptTask : ProcessFlowElement, IProcessDataSerializable
Properties
Script
Gets or sets function to execute.
Declaration
public Func<ProcessExecutingContext, bool> Script { get; set; }
Property Value
Type | Description |
---|---|
System.Func<ProcessExecutingContext, System.Boolean> |
Methods
Execute(ProcessExecutingContext)
Declaration
public override bool Execute(ProcessExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
ProcessExecutingContext | context |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Execute(ProcessExecutingContext, Func<ProcessExecutingContext, Boolean>)
Executes Script Task element.
Declaration
public virtual bool Execute(ProcessExecutingContext context, Func<ProcessExecutingContext, bool> internalExecute)
Parameters
Type | Name | Description |
---|---|---|
ProcessExecutingContext | context | The execution context. |
System.Func<ProcessExecutingContext, System.Boolean> | internalExecute | The function to execute. |
Returns
Type | Description |
---|---|
System.Boolean |
|
InternalExecute(ProcessExecutingContext)
Declaration
protected override bool InternalExecute(ProcessExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
ProcessExecutingContext | context |
Returns
Type | Description |
---|---|
System.Boolean |