MainLibrary Class |
Namespace: Omada.OE.UtilityCodeAssembly.Library
public class MainLibrary
The MainLibrary type exposes the following members.
Name | Description | |
---|---|---|
![]() | MainLibrary |
Name | Description | |
---|---|---|
![]() ![]() | AddUsersToUserGroups |
Adds a number of users from a reference property to some user groups in another reference property, and if
removeOldUsers = true then it will remove the existing users first.
|
![]() ![]() | AddUserToUserGroups |
Tilføjer en bruger som medlem i et antal brugergrupper.
|
![]() ![]() | AssignSetPropertyValueToReferredObjects | |
![]() ![]() | CompleteActivityAsCurrentAssignee | |
![]() ![]() | CopyAssigneeToRefProperty | |
![]() ![]() | CopyPropertyValueFromReferredObject |
Eksempel: et incident objekt har en reference til et CI objekt.
CI objektet har en angivelse af CI kategori.
Metoden kan kopiere denne CI kategori til incident objektet.
|
![]() ![]() | CopyPropertyValues | |
![]() ![]() | CopyPropertyValuesFromActiveUser | The action object should be the target object. The method will set the value of the properties, with the specified ids, on the action object based on the value of the same properties on the active user object. |
![]() ![]() | CopyPropertyValuesFromReferencePath |
Method is using "ReferencePath" concept to load a data object and then to copy the value of
a property from this one to the target object.
|
![]() ![]() | CopyPropertyValuesFromReferredObject | |
![]() ![]() | CopyPropertyValuesFromReferredObject2 | |
![]() ![]() | CopyPropertyValuesToReferredObject |
Copies values for the supplied properties (ids) on the action object to the data object
referred through the property specified in referencePropertyId.
|
![]() ![]() | CopyPropertyValuesToReferredObjects |
Copies values for the supplied properties (ids) on the action object to the data objects
referred through the property specified in referencePropertyId.
|
![]() ![]() | CopyPropertyValuesToReferredObjects2 |
Copies values for the supplied properties (ids) on the action object to the data objects
referred through the property specified in referencePropertyId.
|
![]() ![]() | CopySourcePropertyToTargetProperty |
Copies the value of source property to the target property
Both properties are on the same data object
It works only if you:
- copy from one value property to another value property
- copy from one reference property to another reference property
|
![]() ![]() | CreateDataObjectFromTemplate |
Method creates a new data object of the specified type.
The properties of the specified template object will be copied from the action object to the new data object, based
on the settings of the specified copy rule.
The method is used in master data management scenarios: when a "new object" process completes,
a new master object needs to be created based on the values of the "change request" object, that
has been used in the process.
|
![]() ![]() | CreateProcessInstance | |
![]() ![]() | CreateUserFromTemplate |
Method creates a new user.
The properties of the specified template object will be copied from the action object to the new user, based
on the settings of the specified copy rule.
A property id must be provided containing the username on the action object
|
![]() ![]() | DerriveConcatenatedCategory |
Udregner og assigner en ny værdi for en set property.
Ny værdi udregnes på baggrund af de valgte værdier i 2 andre set properties.
Action objektet skal rumme alle 3 set properties.
Metoden er udviklet til Gastech.
Eksempel:
setPropertyValue1Id angiver værdien "02. Medium"
setPropertyValue2Id angiver værdien "04. Kritisk"
keyLength er 2
Metoden forsøger at finde en værdi for derrivedSetPropertyId property'en
som starter med "0204".
|
![]() ![]() | GenerateIdentifier | |
![]() ![]() | GetDataObjectDifferenceDescription | |
![]() ![]() | GetDataObjectDifferenceDescription2 |
Method returns a textual description of the differences between two data objects.
The two data objects are not nescessarily of the same data object types.
The method is used in master data management scenarios.
|
![]() ![]() | GetReferredUserInfo | |
![]() ![]() | MaintainUserGroupFromReferenceProperty |
Method maintains the members of a user group.
The members of the group is found by inspecting all the users in the system.
Each user must reference another user through a reference property (typically a manager).
After execution, the user group will have all the selected users (managers) as members.
|
![]() ![]() | MoveActionObjectToFolder | |
![]() ![]() | MoveHelpdeskObjectToCustomerFolder |
Metoden flytter actionobjektet til den aktive brugers' firmas folder.
Anvendes til Omadas helpdesk.
|
![]() ![]() | RouteProcessOnDeadline |
Method is used on a timer event to check certain activities in processes of a certain type if are not
completed within deadline. If so they will be autocompleted and the process routed to given transition.
|
![]() ![]() | SaveDataObjCSV | Method is used to save a CSV file generated from a view in the Omada temp folder. |
![]() ![]() | SaveDataObjCSVExtended | Method is used to save a CSV file generated from a view. |
![]() ![]() | SendMailToRefferedGroup |
sends a mail to all the users of a group specified in the reference property.
|
![]() ![]() | SetAssigneeToActiveUsersManager |
Metoden kan anvendes i en process-event-action (enten timer- eller transition-aktiveret).
Metoden opdaterer assignee på actionobjektet (som skal være en aktivitet) til den aktive
brugers' manager. Den aktive brugers manager skal være angivet i en reference property på
user-objektet i property med id = managerPropertyId.
Metoden er velegnet til indkøbsprocesser m.v. hvor det er brugerens manager, som skal godkende
et indkøb.
|
![]() ![]() | SetTargetPropertyValue | |
![]() ![]() | SynchronizeTwoWayReference | |
![]() ![]() | SynchronizeTwoWayReferenceFull | |
![]() ![]() | UploadFile |
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.) |