Interface IActivityExecutionEngine
Namespace: Casewhere.Runtime.Interfaces
Assembly: Casewhere.Runtime.dll
Execute the logic that an activity is supposed to do, according to its definition. So far, mostly, the ScriptedActivityDefinition is the one that contains the logic to execute.
public interface IActivityExecutionEngine
Extension Methods
ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<IActivityExecutionEngine>(IActivityExecutionEngine)
Methods
Accept(ActivityDefinition)
bool Accept(ActivityDefinition activityDefinition)
Parameters
activityDefinition
ActivityDefinition
Returns
Execute(WorkflowContext, ActivityDefinition, ActivityResult)
Execute the logic define in the Casewhere.Models.ActivityDefinition. Currently we will temporary ignore the error handler. If an exception is thrown, the system just dies. (Should improve later)
void Execute(WorkflowContext context, ActivityDefinition activityDefinition, ActivityResult activityResult)
Parameters
context
WorkflowContext
activityDefinition
ActivityDefinition
activityResult
ActivityResult