Interface IActivity
An activity is an executable instance which receives a target, arguments, and an executing context upon execution.
Inherited Members
Namespace: Kephas.Workflow
Assembly: Kephas.Workflow.dll
Syntax
public interface IActivity : IOperationResult, IExpando, IDynamicMetaObjectProvider, IIndexable, INotifyPropertyChanged, IInstance<IActivityInfo>, IInstance
Remarks
An activity instance may be executed only once. To execute an activity multiple times, create for each execution an instance and execute it. During the execution, it may be canceled or paused, and also debuggers may be attached to provide development support. The state provide the flags during the execution.
Properties
| Improve this Doc View SourceArguments
Gets the arguments for the execution.
Declaration
IExpando Arguments { get; }
Property Value
Type | Description |
---|---|
IExpando | The arguments. |
Context
Gets the execution context.
Declaration
IActivityContext Context { get; }
Property Value
Type | Description |
---|---|
IActivityContext | The execution context. |
Target
Gets the target against which the activity is executed.
Declaration
object Target { get; }
Property Value
Type | Description |
---|---|
System.Object | The target. |
Remarks
The target is typically the activity's container instance. For example, a user entity may contain a ChangePassword activity, in which case the target is the user.