Process Methods |
The Process type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddNewActivity |
Creates a new activity and adds it to the process.
|
![]() | AddVersion(Boolean, DataObjectType) |
Adds a new DataObjevtVersion object the Versions collection.
If copyValues is true, all property values on the current version are copied to the new version.
(Inherited from DataObject.) |
![]() | AddVersion(Boolean, Boolean, DataObjectType) |
If a data object must be modified then a new version must be added first.
This method adds a new version to the data object.
(Inherited from DataObject.) |
![]() | AssignPropertyValue |
Tip: use the indexer property to access property values instead of using this method.
Assigns a property value to the LastVersion of the object.
The value can be of type:
string, int, datetime, double, bool, timespan, AppStringContainer, SetPropertyValue, ReferencePropertyValue or null.
The value type is dependant on the DataType of the property
(Inherited from DataObject.) |
![]() | AssignReferencePropertyValue |
Assigns a reference property on LastVersion.
(Inherited from DataObject.) |
![]() | AssignReferencePropertyValues |
Assigns a reference property on LastVersion.
Tip: use the indexer property to access property values instead of using this method.
(Inherited from DataObject.) |
![]() | BreakSecurityInheritance |
Breaks the enheritance of security.
If InheritsSecurity=true no adjustments must be made to the security.
This method is used to set InheritsSecurity=false.
(Inherited from DataObject.) |
![]() | CheckAndAddVersion(Boolean) |
Adds a version only of the LastVersion object is already stored in the database.
(Inherited from DataObject.) |
![]() | CheckAndAddVersion(Boolean, DataObjectType) |
Adds a version only if the LastVersion object is already stored in the database.
(Inherited from DataObject.) |
![]() | Clone | (Overrides DataObjectClone.) |
![]() | CloneProcess |
Clones the process and resets all relevent ID's
The process must be a template.
The process, the activities and the target must have populated its security.
The first activity in the copy is set to active.
The method is used to make a copy of a process (template).
The process template flag is set to false.
|
![]() | CloneProcessTemplate |
Copies a process template and resets all relevant id's.
The result is a new process template (note: not an instance).
Method is used to make a copy of a process template.
|
![]() | CountTransitionsFromExit |
Returners the number of transitions leaving from exit.
|
![]() | CountTransitionsFromStart |
Returns the number of transitions leaving from start.
|
![]() | FindTargetTypeId |
Returns the target typeid of the process.
If the process has TargetId > 0 the Target type id is returned.
Else the TargetTypeId is returned.
The method can only be called of teh process is loaded with LoadTargets=true.
|
![]() | FormatTemplateText |
Formats the object to a string using a template string where attributes a replaced.
(Inherited from DataObject.) |
![]() | GetFirstActivity |
Returns the first activity in the process.
(the one which the start-elementet leads to)
If it is not found, an Exception is thrown.
|
![]() | GetFirstTransition |
Returns the first transition in the process.
(which comes from the start element)
If it is not found it returns null.
|
![]() | GetMultiLanguagePropertyValue |
Returns multi language property value in provided language.
(Inherited from DataObject.) |
![]() | GetObjectKey |
Returns the key value of the data object.
the key property comes from the typen, but it must be provided for performance reasons.
If key property is 0 the display name is returned.
Returns null if the object does not have a value for the provided key (value) property.
(Inherited from DataObject.) |
![]() ![]() | GetPreceedingSplitElement(ControlElement, Activities) | |
![]() ![]() | GetPreceedingSplitElement(ControlElement, Activities, ControlElements) |
Returns the split control element which matches the provided join element.
If no element is found null is returned.
All elements in the process must be saved to the database.
|
![]() | GetProcessInstanceObject(ProcessObjectType) | |
![]() | GetProcessInstanceObject(ProcessObjectType, Int32) |
Returns a object related to a proces instancebased on objectType.
The object returned is either:
* the process object
* one of the activitety objects
* the target object
If objectType=ProcessObjectType.Activity the activityTemplateId must be provided.
In such case, the activity which is based on the templateid is returned.
If no aktivity is found for the provided activityTemplateId null is returned.
|
![]() | GetProcessInstanceParentId |
Returns where in the tree structure the process instance must be placed.
Can only be called for templates.
|
![]() | GetProcessObjectTypeId |
Returns the typeid of a procesinstance or proces template related object based on objectType.
Typeid returned is:
* ObjectId.DataObjectType.Processes
* ObjectId.DataObjectType.Activity
* typeid of the Target
|
![]() | GetProcessTemplateObject(ProcessObjectType) | |
![]() | GetProcessTemplateObject(ProcessObjectType, Int32) |
Returns an object related to a procestemplate based on objectType.
The object returned is either:
* the process object
* one of the activitety objects
* the target object
If objectType=ProcessObjectType.Activity the activityTemplateId must be provided.
In such case, the activity which is based on the templateid is returned.
|
![]() | GetPropertyValue(Int32) |
Returns the value of a particular property on the newest data object version.
The value can be of the following type::
string, int, datetime, double, bool, SetPropertyValue object or ReferencePropertyValue object.
It can also be null, if:
* The object does not have a current versionhar ingen current version
* The property was not found (its not on the type)'en blev ikke fundet (den er ikke på typen)
* The value has not been loaded (ValueAvailable=false)
* There are no value for theproperty
(can be caused by yhe property being added to the type after the object was created.)
* The identity user does not have access to the property
(Inherited from DataObject.) |
![]() | GetPropertyValue(Int32, IEnumerableInt32) | Obsolete.
Returns the value(s) of a Set property or a Reference property.
If the property is a Set property the Ids of the selected Set Property Values are returned.
If the property is a Reference property the Ids of the selected Data Objects are returned.
(Inherited from DataObject.) |
![]() | GetPropertyValue(Int32, Int32) | Obsolete.
Returns the value of a Value property with data type 'Integer' or a Set property or a Reference property.
If the property is a Set property the Id of the selected Set Property Value is returned.
If the Set property has more than one selected values then a random one of those is returned.
If the property is a Reference property the Id of the selected Data Object is returned.
If the Reference property has more than one selected values then a random one of those is returned.
(Inherited from DataObject.) |
![]() | GetPropertyValue(String, Boolean) | Obsolete.
Returns the value of a Value property with data type 'Boolean'.
(Inherited from DataObject.) |
![]() | GetPropertyValue(String, IEnumerableInt32) | Obsolete.
Returns the value(s) of a Set property or a Reference property.
If the property is a Set property the Ids of the selected Set Property Values are returned.
If the property is a Reference property the Ids of the selected Data Objects are returned.
(Inherited from DataObject.) |
![]() | GetPropertyValue(String, DateTime) | Obsolete.
Returns the value of a Value property with data type 'DateTime'.
(Inherited from DataObject.) |
![]() | GetPropertyValue(String, Double) | Obsolete.
Returns the value of a Value property with data type 'Decimal'.
(Inherited from DataObject.) |
![]() | GetPropertyValue(String, Guid) | Obsolete.
Returns the value of Set property.
The UId of the selected Set Property Value is returned.
If the Set property has more than one selected values then a random one of those is returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
(Inherited from DataObject.) |
![]() | GetPropertyValue(String, Int32) |
Returns the value of a Value property with data type 'Integer' or a Set property or a Reference property.
If the property is a Set property the Id of the selected Set Property Value is returned.
If the Set property has more than one selected values then a random one of those is returned.
If the property is a Reference property the Id of the selected Data Object is returned.
If the Reference property has more than one selected values then a random one of those is returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
(Inherited from DataObject.) |
![]() | GetPropertyValue(String, String) |
Returns the string value of a property.
If the property is a Value property it must be of data type 'Text' or 'MultiLangText'.
If the property is a Set property the Name of the (first) selected value is returned.
If the property is a Reference property the DisplayName of the (first) selected value is returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
(Inherited from DataObject.) |
![]() | GetPropertyValue(String, TimeSpan) | Obsolete.
Returns the value of a Value property with data type 'TimeSpan'.
(Inherited from DataObject.) |
![]() | GetPropertyValueByOdwMapping(String, DateTime) |
Returns the datetime value of a property by odw mapping.
If the property is a Value property it must be of data type DateTime.
(Inherited from DataObject.) |
![]() | GetPropertyValueByOdwMapping(String, String) |
Returns the string value of a property by odw mapping.
If the property is a Value property it must be of data type 'Text' or 'MultiLangText'.
If the property is a Set property the Name of the (first) selected value is returned.
If the property is a Reference property the DisplayName of the (first) selected value is returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
(Inherited from DataObject.) |
![]() | GetPropertyValuesT(Int32) |
Returns the value(s) for a property.
(Inherited from DataObject.) |
![]() | GetPropertyValuesT(String) |
Returns the value(s) for a property or a fixed field.
Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
(Inherited from DataObject.) |
![]() | GetReferencePropertyValues(Int32) |
Returns a collection of ReferencePropertyValue objects from the current DataObjectVersion.
(Inherited from DataObject.) |
![]() | GetReferencePropertyValues(String) |
Returns a collection of ReferencePropertyValue objects from the current DataObjectVersion.
(Inherited from DataObject.) |
![]() | GetSinglePropertyValueT(Int32, T) |
Returns a single value for a property (fixed fields are not supported by this method).
(Inherited from DataObject.) |
![]() | GetSinglePropertyValueT(String, T) |
Returns a single value for a property or a fixed field.
Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
(Inherited from DataObject.) |
![]() | GetSinglePropertyValueByOdwMappingT |
Returns a single value for a property or a fixed field based on ODW mapping.
Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
(Inherited from DataObject.) |
![]() | GetStartElement |
Returns the start-element of the process.
|
![]() | GetSuccessors |
Returns all successors to activities to an activity
|
![]() | GetTargetDataObjectType |
Returns the type object of the process / process template.
If the target object of the process is not loaded, null is returned.
|
![]() | GetTargetDataObjectTypeId |
Returns the process target type ID
If the target object of the process is not loaded, an exception is thrown.
|
![]() | HasProperty |
Returns true if the data object has the specified property.
(Inherited from DataObject.) |
![]() | IsInfoAvailable |
Returns true if the fields provided in infoFlags is available on the DataObject.
(Inherited from DataObject.) |
![]() | PropertyChanged |
Returns true if the provided property has changed between
CurrentVersion and LastVersion.
If no currentversion is available, true is returned.
(Inherited from DataObject.) |
![]() | RemoveTransition | |
![]() | RemoveTransitions | |
![]() | SetId | (Overrides DataObjectSetId(Int32).) |
![]() | SetPropertyValue |
Tip: use the indexer property to access property values instead of using this method.
Assigns a property value to the LastVersion of the object.
The value can be of type:
string, int, datetime, double, bool, timespan, AppStringContainer, SetPropertyValue, ReferencePropertyValue or null.
The value type is dependant on the DataType of the property
(Inherited from DataObject.) |
![]() | ToString |
Formats the object to a displayable string.
(Inherited from DataObject.) |
![]() | ToString(AppFormatInfo) |
Returns the string representation of the object.
(Inherited from DataObject.) |
![]() | UpdateDisplayName |
Updates data object display name.
(Inherited from DataObject.) |
![]() | Validate | |
![]() | Validate(String) |
Validates that the process is in a valid state.
If false, the message will contain a description of the problem.
|
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |
Name | Description | |
---|---|---|
![]() ![]() | IObjectWithDataVersion.GetDataVersion | (Inherited from DataObject.) |
![]() ![]() | IObjectWithGuid.GetGuid | (Inherited from DataObject.) |
![]() ![]() | IObjectWithId.GetId | (Inherited from DataObject.) |
![]() ![]() | IDataObjectGetPropertyValue |
Returns the string value of a property.
If the property is a Value property it must be of data type 'Text' or 'MultiLangText'.
If the property is a Set property the Name of the (first) selected value is returned.
If the property is a Reference property the DisplayName of the (first) selected value is returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
(Inherited from DataObject.) |
![]() ![]() | IDataObjectGetPropertyValues |
Returns a dictionary with the property values of the data object.
The keys in the dictionary are the system names of the properties.
Not all properties are present in the dictionary. The following are excluded:
- Text properties with log
- Hyperlink properties
- Properties w. denied access
- Properties w. an inavailable value
The data type of the property value depends on the type and data type of the property:
- Set property: IEnumerable int of SetPropertyValue ids
- Reference property: IEnumerable<IReferencePropertyValue>
- Value property - Text: string - can be null
- Value property - Integer: int - can be null
- Value property - DateTime: DateTime - can be null
- Value property - Decimal : double - can be null
- Value property - Boolean : bool - can be null
- Value property - TimeSpan : TimeSpan - can be null
- Value property - Multilang. text : string with value in active user's language - can be null
(Inherited from DataObject.) |
![]() ![]() | IObjectContainingDataObjectGetDataObject |
Returns the DataObject
(Inherited from DataObject.) |
![]() ![]() | IObjectWithAttributesAddAttribute |
Adds an attribute - if it exists already the value is overwritten.
(Inherited from DataObject.) |
![]() ![]() | IObjectWithAttributesGetKeys |
Returns all the keys in the collection
(Inherited from DataObject.) |
![]() ![]() | IObjectWithAttributesGetValue |
Returns the value of an attribute.
If the attribute doesn't exist null is returned.
(Inherited from DataObject.) |
![]() ![]() | IObjectWithAttributesHasAttribute |
Returns whether an attribute exists.
(Inherited from DataObject.) |