Show / Hide Table of Contents

Interface IActivity

An activity is an executable instance which receives a target, arguments, and an executing context upon execution.

Inherited Members
IOperationResult.ReturnValue
IOperationResult.OperationState
IOperationResult.PercentCompleted
IOperationResult.Elapsed
IOperationResult.Messages
IOperationResult.Exceptions
IExpando.HasDynamicMember(String)
IExpando.ToDictionary(Func<String, String>, Func<Object, Object>)
System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression)
IIndexable.Item[String]
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
IInstance<IActivityInfo>.GetTypeInfo()
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 Source

Arguments

Gets the arguments for the execution.

Declaration
IExpando Arguments { get; }
Property Value
Type Description
IExpando

The arguments.

| Improve this Doc View Source

Context

Gets the execution context.

Declaration
IActivityContext Context { get; }
Property Value
Type Description
IActivityContext

The execution context.

| Improve this Doc View Source

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.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX