Click or drag to resize

ActionArguments Class

Arguments for performing an action caused by a survey object event.
Inheritance Hierarchy
SystemObject
  Omada.OE.Solution.OIM.AppLogic.SurveyFeature.PostActionsActionArguments

Namespace:  Omada.OE.Solution.OIM.AppLogic.SurveyFeature.PostActions
Assembly:  Omada.OE.Solution.OIM.AppLogic (in Omada.OE.Solution.OIM.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public class ActionArguments

The ActionArguments type exposes the following members.

Properties
  NameDescription
Public propertyApplyChanges
An extension can set ApplyChanges to have the property values of the survey object updated (based on changes to .PropertyValues) and optionally complete the workflow step.
Public propertyChangedProperties
System names of the properties that has been changed. Important: only properties that has been changed *before* the action handler was called are present. Hence, if the action handler makes changes to PropertyValues then the changed properties are not immediately reflected in ChangedProperies.
Public propertyDbConnection
Public propertyDbTransaction
Public propertyEventType
The type of event that caused the action.
Public propertyFactory
Public propertyFinalPropertyValues Obsolete.
Property values of the survey object (considering the changes made during the survey). See InitialPropertyValues for a description of the data types. Tip: use the GetPropertyValue method for easy access to the property values.
Public propertyInitialPropertyValues
Initial property values of the survey object at the time when the survey was initiated. Keys in the dictionary are property system names. Values are collections of property values. Each value for a property is either a: string (VP datatype text, hyperlink, xml), integer (VP datatype integer, RP, SP), boolean (VP datatype bool), TimeSpan (VP datatype TimeSpan), double (VP datatype decimal) or DateTime (VP datatype DateTime). The result for value property will always contain zero or one value. The result for set- and reference-properties can contain zero, one or multiple values. For set- and reference-properties the value ids are returned (set property value ids or data object ids). Tip: use the GetPropertyValue method for easy access to the property values.
Public propertyIsChildObject
Is true if it is a parent/child survey and the survey object has a parent
Public propertyLogEntries
Log entries describing who changed which properties and when on the survey object. Tip: can also be accessed with GetMostRecentLogEntry().
Public propertyParentActionArguments
Action arguments for performing action on parent survey object (if any). Is only populated if parent and child survey objects are submitted in the same call.
Public propertyParentSourceKey
Source key of the parent object if the object is a child. Is null if the survey object is parent
Public propertyPropertyValues
Current property values of the survey object (considering the changes made during the survey). Tip: if changes are made to PropertyValues and the survey object should be updated accordingly then remember to set ApplyChanges=true.
Public propertyRoutingInfo
Contains info about the previus and current workflow steps. Note: RoutingInfo is null if EventType==SurveyCloses.
Public propertySkipValidation
It skips the survey required fields validation when it is true. This flag is set true when a survey is set ApplyChangesAndCompleteStep from the PostActionHandler.
Public propertySourceKey
Source key of the survey object to perform post actions on.
Public propertySurveyId
Id of the survey that the survey object has been processed in.
Public propertyTemplate
Public propertyWorkflowCompleted
Has all (relevant) workflow steps been completed for the survey object? WorkflowCompleted is false if: * The action is being executed as a result of survey being prematurely closed. * The action is configured to run after every step and the step that has just completed isn't the final one for the object.
Public propertyWorkflowStepLogEntries
Log entries describing who completed which workflow steps and when on the survey object. Is empty if the survey object hasn't completed any steps.
Top
Methods
  NameDescription
Public methodApplyPropertyChanges
Applies the changes made to the survey object during the survey to a data object. Important: only changes made *before* the action handler was called are applied. Hence, if the action handler makes changes to PropertyValues then those changes are not applied by the method. The data object is not saved to the database!
Public methodConvertObjectId(Guid, ConfigurationObjectType)
Utility method for converting an object uid to an id (of for example a data object or property etc.).
Public methodConvertObjectId(Int32, ConfigurationObjectType)
Utility method for converting an object id to an uid (of for example a data object or property etc.).
Public methodGetMostRecentLogEntry
Get most recent log entry for a property. Returns null if no entries can be found.
Public methodGetPropertyValueT(String, T)
Public methodGetPropertyValueT(String, DictionaryString, ListObject, T) Obsolete.
Utility method for easy retrieval of a single property value from either InitialPropertyValues or FinalPropertyValues.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also