DocsMarshal.Workflow.ActivityLibrary.Profilesv 1.0.0.0

A set of activity essential to manage profiles in DocsMarshal. It is possible to INSERT new profiles and to UPDATE or DELETE the existing ones. It is also possible to get the value of them fields (also the multi language ones).

Operation on profile are often made using a sequence of activities. Here are described all of the necessary steps for all the possible operations:
  • INSERT: inserting a profile requires three steps:
    • GetProfileInsert: the first necessary step is to obtain the IProfileForInsert object which represents a basic profile related to its ClassType, Domain and ObjectState.
      It is possible to perform this operation using three different activities:
    • SetFieldValue: the second step is to set the value of the profile fields. It is possible to perform this task using three different activity based on wether the field is MultiLanguage or not. All these activities takes in input a list of IFieldGeneric which represents the field list of the profile whose field values have to be changed. This list must be taken from the property Fields of the previously retrived ProfileForInsert:
    • ProfileInsert: finally it is necessary to call one of the following activities to finally insert the profile in DocsMarshal:
      • ProfileInsert insert a single Profile given the IProfileForInsert created in the previous steps.
      • ProfileBulkInsert allows you to insert thousands of profiles in a very short time (less than 1 second for 4000 profiles). It is necessary to repeat the previous steps for every profile you want to insert and to add them to al List of IProfileForInsert.
  • UPDATE: updating a profile requires also three steps:
    • GetProfileForUpdate: the first necessary step is to obtain the IProfileForUpdate object which represents the old value of the profile to update.
      It is possible to perform this operation using two different activities:
    • SetFieldValue: the second step is to set the value of the profile fields. It is possible to perform this task using three different activity based on wether the field is MultiLanguage or not. All these activities takes in input a list of IFieldGeneric which represents the field list of the profile whose field values have to be changed. This list must be taken from the property Fields of the previously retrived ProfileForUpdate:
    • ProfileUpdate: finally it is necessary to call one of the following activities to apply the updates of the profile in DocsMarshal:
      • ProfileUpdate update a single Profile given the IProfileForUpdate created in the previous steps.
      • ProfileBulkUpdate allows you to update thousands of profiles in a very short time (less than 1 second for 4000 profiles). It is necessary to repeat the previous steps for every profile you want to update and to add them to al List of IProfileForUpdate.
  • DELETE: use the activity ProfileDelete to delete a profile given its ObjectId
  • SEARCH: look at the DocsMarshal.Workflow.ActivityLibrary.Profiles.Search documentation to find all details about the profile's search.

DocsMarshal.Workflow.ActivityLibrary.ApplyRegister

Apply Register with the defined ExternalId to the profile with specified ObjectId. Throws an InvalidOperationException if the profile already has a protocol code


DocsMarshal.Workflow.ActivityLibrary.CloneProfileForInsert

This activity allows you to create a copy of a profile for insert without a memory reference.


DocsMarshal.Workflow.ActivityLibrary.CreateDMObjectSecurity

This activity returns a new DMObjectSecurity object which represents the grants a security identity has on a profile.


DocsMarshal.Workflow.ActivityLibrary.CreateRelation

This activity creates a relation between two profiles in DocsMarshal.


DocsMarshal.Workflow.ActivityLibrary.FromProfileToProfileForInsert

This activity creates a new ProfileForInsert from an existing profile. It is useful in the case you want to insert a new profile starting from an existing one.


DocsMarshal.Workflow.ActivityLibrary.GetDocument

This activity allows to get a document from a profile.


DocsMarshal.Workflow.ActivityLibrary.GetFieldValue<T>

This activity returns the value of a profile field given its ExternalId.


DocsMarshal.Workflow.ActivityLibrary.GetLanguage

This activity returns a Language given its code. It takes a list of languages and search the given code. If no language is found the default value is returned.


DocsMarshal.Workflow.ActivityLibrary.GetMLFieldValue

This activity returns the value of a multilanguage field given a language code or a language id


DocsMarshal.Workflow.ActivityLibrary.GetNewIdByKey

This activity returns the first available value of an enumeration in DocsMarshal given its Key and its World


DocsMarshal.Workflow.ActivityLibrary.GetProfileForUpdate

This activity returns a ProfileForUpdate given the ObjectId of the profile to update.


DocsMarshal.Workflow.ActivityLibrary.GetProfileForUpdateByProfile

This activity returns the ProfileForUpdate of directly from the given profile.


DocsMarshal.Workflow.ActivityLibrary.GetProfileGrants

This activity returns all the grants a profile has.


DocsMarshal.Workflow.ActivityLibrary.GetProfileInsertByExtIds

This activity creates an IProfileForInsert object which represents a basic profile related to its ClassType, Domain and ObjectState.


DocsMarshal.Workflow.ActivityLibrary.GetProfileInsertFromAnotherProfile

This activity creates an IProfileForInsert object starting from an already existing profile.


DocsMarshal.Workflow.ActivityLibrary.GetProfileMaskContents

This activity returns all the properties a ClassType's mask has. The activity returns all AdditionalFieldStructures, all DynAsses and all fields' ids a mask has.


DocsMarshal.Workflow.ActivityLibrary.ProfileBulkInsert

This activity allows to massively insert profiles in DocsMarshal given a list of ProfileForInsert. If any error occurs, then no profile is inserted and the activity throws an exception.


DocsMarshal.Workflow.ActivityLibrary.ProfileBulkUpdate

This activity allows to massively update profiles in DocsMarshal given a list of ProfileForUpdate.


DocsMarshal.Workflow.ActivityLibrary.ProfileDelete

This activity deletes a profile given its ObjectId


DocsMarshal.Workflow.ActivityLibrary.ProfileInsert

This activity allows to insert a profile.


DocsMarshal.Workflow.ActivityLibrary.ProfileUpdate

This activity allows to perform the update operation of a profile.


DocsMarshal.Workflow.ActivityLibrary.ResetProfileFields

This activity resets at the default value all the properties a profile has.


DocsMarshal.Workflow.ActivityLibrary.SetDocument

This activity allows to set a document of a profile.


DocsMarshal.Workflow.ActivityLibrary.SetFieldValue

This activity sets the value of profile field.


DocsMarshal.Workflow.ActivityLibrary.SetMLFieldValue

This activity set the value to a given multi language field.


DocsMarshal.Workflow.ActivityLibrary.SetMLFieldValues

This activity set multiple values to a given multi language field.


DocsMarshal.Workflow.ActivityLibrary.SetProfileDomain

This activity allows to set the DOmain of a given profile.


DocsMarshal.Workflow.ActivityLibrary.SetProfileExternalId

This activity allows to set the External Id of a given profile. Also all the necessary checks so that everything happens correctly will be done.


DocsMarshal.Workflow.ActivityLibrary.SetProfileGrants

This activity allows to set the grants of a SecurityIdentity on a profile.


DocsMarshal.Workflow.ActivityLibrary.SetProfileLanguage

This activity allows to set the Language of a given profile.


DocsMarshal.Workflow.ActivityLibrary.SetProfileObjectState

This activity allows to set the ObjectState of a given profile.