SaaS CMS has officially launched! Learn more now.

Class AddUserData

Activity that adds custom data to a UserData dictionary.

Inheritance
System.Object
AddUserData
Namespace: EPiServer.WorkflowFoundation.Activities
Assembly: EPiServer.WorkflowFoundation.dll
Version: 7.19.2
Syntax
public class AddUserData : InvokesBase<AddUserData>
Remarks

Each workflow instance (WorkflowDefinitionInstance) has a dictionary<string, object> that can be used to hold custom data for the instance. A workflow instance can pass data to its associated workflowDefinitionInstance object by using the AddUserData activity. The requirement for the passed objects is that they are serializable and registered with Object store (see the topic Developing Workflows in the Developer's Guide for further information regarding Object store).

Constructors

AddUserData()

Initializes a new instance of the AddUserData class.

Declaration
public AddUserData()

Fields

KeyProperty

Register Key property so it can be databound

Declaration
public static DependencyProperty KeyProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

LogActionProperty

Register LogAction property so it can be databound

Declaration
public static DependencyProperty LogActionProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

ValueProperty

Register Value property so it can be databound

Declaration
public static DependencyProperty ValueProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

Properties

Key

Gets or sets the key for the userdata

Declaration
public string Key { get; set; }
Property Value
Type Description
System.String

LogAction

Gets or sets if this action should be logged to history items for workflow instance

Declaration
public bool LogAction { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Must be serializable

Value

Gets or sets the value for the userdata

Declaration
public object Value { get; set; }
Property Value
Type Description
System.Object
Remarks

Must be serializable

If custom tyep is used scema for type must be registered with Object store

Methods

OnMethodInvoking(EventArgs)

Provides a hook for derived classes to set System.Workflow.Activities.CallExternalMethodActivity.ParameterBindings. This method is called just before the external method is run.

Declaration
protected override void OnMethodInvoking(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

An System.EventArgs that contains the data for the System.Workflow.Activities.CallExternalMethodActivity.MethodInvoking event.

Extension Methods