Assign
This activity assigns a value to a variable or argument.
Activity Parameters
The Assign activity has two parameters that can be provided by manually inserted values or via IN arguments or variables:
As a side note, the values can also be inserted in the workflow designer area as well, directly in the activity:
Parameters:
- To (text box editor type) (type: String): The variable or argument to which the Value is assigned. This must be a valid Visual Basic identifier.
- Value (text box editor type) (type: String): The value that is assigned to the variable.
Delay
This activity delays the execution of a workflow for a specified amount of time.
Activity Parameters
The Assign activity has one parameter and it be provided by manually inserted values or via IN arguments or variables:
Parameters:
- Duration (text box editor type) (type: String): The amount of time to delay the workflow. This property is set in the property grid. Type in either a literal TimeSpan in the format 00:00:00 or a Visual Basic expression to specify the amount of time.
InvokeDelegate
This activity calls a public delegate.
Activity Parameters
The InvokeDelegates activity has two parameters, one of which is to be set in the workflow designer area (mandatory) and the other in the Parameters pane on the right side of the screen:
Parameters:
- Delegate (combobox control type) (type: String): The name of the T:System.Activities.Statements.ActivityDelegate to be called when the activity executes. This is a mandatory property..
- DelegateArguments (collection editor type) (type: Collection): The argument collection of the called delegate. The keys are the names of the T:System.Activities.Statements.ActivityDelegateParameter objects on the T:System.Activities.Statements.ActivityDelegate and the values are the arguments whose expressions are evaluated and assigned to the corresponding T:System.Activities.Statements.ActivityDelegateParameter objects.
InvokeMethod
This activity calls a public method of a specified object or type.
Activity Parameters
The InvokeMethod activity has parameters that can be provided by manually inserted values or via IN arguments or variables
Parameters:
- GenericTypeArguments (collection editor type) (type: Collection):
- MethodName (text box editor type) (type: String): The name of the method to be called when the activity executes. The called method must be declared as public. This is a mandatory property.
- Parameters (collection editor type) (type: Collection): The parameter collection of the called method. The parameters must be added to the collection in the same order that they appear in the method signature.
- Result (text box editor type) (type: String): The return value of the method call.
- RunAsynchronously (checkbox control type) (type: boolean): pecifies whether the method is called asynchronously. The default value is False.
- TargetObject (text box editor type) (type: String): The object that contains the method to call. This property can be edited on designer surface. Either the TargetObject or the TargetType is required to be set.
- TargetType (combobox control type): The type of TargetObject. This property can be edited on the designer surface. This property must only be set if the method called is static.