Class WorkflowContext
Context for a server method which runs on a Workflow event
Inheritance
System.Object
WorkflowContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Innovator.Server
Assembly: Innovator.Client.dll
Syntax
public class WorkflowContext : IWorkflowContext, IContext
Constructors
| Improve this Doc View SourceWorkflowContext(IServerConnection, IReadOnlyItem)
Initializes a new instance of the WorkflowContext class.
Declaration
public WorkflowContext(IServerConnection conn, IReadOnlyItem item)
Parameters
Type | Name | Description |
---|---|---|
IServerConnection | conn | The connection. |
IReadOnlyItem | item | The item. |
Properties
| Improve this Doc View SourceActivity
The activity during which the method is being called
Declaration
public Activity Activity { get; }
Property Value
Type | Description |
---|---|
Activity |
Implements
| Improve this Doc View SourceConn
Connection to the database
Declaration
public IServerConnection Conn { get; }
Property Value
Type | Description |
---|---|
IServerConnection |
Implements
| Improve this Doc View SourceContext
The item which is the context of the workflow
Declaration
public IReadOnlyItem Context { get; }
Property Value
Type | Description |
---|---|
IReadOnlyItem |
Implements
| Improve this Doc View SourceErrorBuilder
Error builder which captures any errors which are encountered
Declaration
public IErrorBuilder ErrorBuilder { get; }
Property Value
Type | Description |
---|---|
IErrorBuilder |
Implements
| Improve this Doc View SourceException
Get the exception object created for any errors that have happened so far.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception |
Implements
| Improve this Doc View SourceQueryDefaults
Method for modifying the query to get the context item
Declaration
public Action<IItem> QueryDefaults { get; set; }
Property Value
Type | Description |
---|---|
System.Action<IItem> |
Implements
| Improve this Doc View SourceWorkflowEvent
The event for which the server method is being called
Declaration
public WorkflowEvent WorkflowEvent { get; }
Property Value
Type | Description |
---|---|
WorkflowEvent |