SPUserCodeWorkflowActivity.Execute Method
Executes a workflow action.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Protected Overrides Function Execute ( _
context As ActivityExecutionContext _
) As ActivityExecutionStatus
'Usage
Dim context As ActivityExecutionContext
Dim returnValue As ActivityExecutionStatus
returnValue = Me.Execute(context)
protected override ActivityExecutionStatus Execute(
ActivityExecutionContext context
)
Parameters
context
Type: System.Workflow.ComponentModel.ActivityExecutionContextThe context that is associated with this activity.
Return Value
Type: System.Workflow.ComponentModel.ActivityExecutionStatus
The status of the activity.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | __ContextProperty is null , SolutionId is null , or Empty. SolutionId is null or Empty. ClassName is null or an empty string. FunctionName is null or an empty string. |
Remarks
The workflow runtime calls this override to execute a workflow action.
This override executes the sandboxed solution workflow action if the child PersistOnCloseActivity has not been executed, then returns Closed; otherwise, this override schedules the execution of the child PersistOnCloseActivity to execute, then returns Executing. After the child PersistOnCloseActivity has been executed, the sandboxed solution workflow action is executed.
See Also
Reference
SPUserCodeWorkflowActivity Class