Start of changeIBM FileNet P8, Version 5.2.1            

Import options set files: Usage and syntax for import options elements

The import options elements used in the import options set file control the import process for converted objects into the destination environment.

Usage for import options elements

The import options elements must appear either as child elements of the <ImportDeployDataSet> element in a deployment operation file, or in a separate file. To specify the location of a separate import options set file, include the <OptionSetPath> child element within the <ImportDeployDataSet> element of the deployment operation file. For more information about usage of the <OptionSetPath> child element, see Deployment operation files.

When using the ImportDeployDataSet deployment operation, the preferred method to provide import options is to use a separate import options set file. The use of a separate file enables the import options to be shared between users or between instances of import operations that are automated by using the command-line interface. When placed into a separate import options set file, the import options must be contained by the <ImportOptions> element. The <ImportOptions> element is contained within the <DeploymentOptions> element. The following example shows the general structure of an import options set file, with most of the import options removed:
<DeploymentOptions version="5.2.1">
  <ImportOptions>
    <StoragePolicy type="DefaultOnClassOnDestination">
      <ID/>
    </StoragePolicy>
    ...
  </ImportOptions>
</DeploymentOptions>
The import options can be wholly or partially specified in the deployment operation file or the import options set file. When an import option appears in both the deployment operation file and the import options set file, the value in the deployment operation file takes precedence. This behavior enables a programmer to include import options in the deployment operation file that temporarily override the import options in the import options set file. In the following example of an ImportDeployDataSet deployment operation, the <OptionSetPath> element provides an import options set file to use, the ImportOptionSet.xml file. However, when this ImportDeployDataSet deployment operation runs, any value that is set for the <AuditOption> element in the ImportOptionSet.xml file is overridden by the <AuditOption> value in the deployment operation file. In the example, the import action uses the audit only mode, and does not import the data.
<ImportDeployDataSet> 
  <Environment>MyDestination</Environment> 
  <DeployDataSet>C:\P8DeploymentData521\Environments\MyDestination\Assets\ApplicationAssets.converted</DeployDataSet> 
  <OptionSetPath>C:\P8DeploymentData521\ImportOptionSet.xml</OptionSetPath> 
  <AuditOption>AuditOnly</AuditOption> 
  <ReportFileName>_AuditAssetsV4</ReportFileName> 
</ImportDeployDataSet>
If an import option does not appear in either file, its default value is used. Thus, an ImportDeployDataSet deployment operation file that contains no import options and no import options set file will run with the default values for all of the import options.

Syntax for import options elements

The following table shows the syntax and descriptions for the XML elements that represent the import options.
Draft comment: jprev
Note to self: Contradictory information in IBM Style says no tagging on XML (i.e., no code related tagging), so used <u> to tag defaults in syntax below. But, <option> and <option importance="default"> tags are available for code tagging. So, to tag or not to tag on this XML? See 1st row for difference in tagging with <option> element.
Table 1. Import options element syntax
Syntax Description
<AuditOption>
  AuditOnly|ImportWithAudit|ImportOnly
</AuditOption>

Controls whether an audit file is captured and whether the import operation commits changes to the destination environment.

AuditOnly
Captures before and after information for each of the objects in the deployment data set and writes the information to an audit file without importing any data.
ImportWithAudit
Captures before and after information for each of the objects in the deployment data set and writes the information to an audit file and also imports the data.
ImportOnly
Default value. Imports the objects from the deployment data set without creating an audit file.
<CreateOption>
  CreateAlways|CreateNotAllowed
</CreateOption>

Controls whether assets are created.

CreateAlways
Default value. Creates a new object if an object with the same ID is not present in the destination.
CreateNotAllowed
Applies updates to existing objects with the same ID. If an object with the same ID does not exist in the destination, the object is neither created nor modified. This value is used to ensure that only delta property changes to existing assets are applied. This value cannot be used if UpdateNotAllowed is specified as the value for the <UpdateOption> element.
<DeleteCreatedFilesOnError
  value="true"|"false"
/>

Controls whether to delete the audit files that are being written when the import operation encounters an exception that would cause the operation to end.

"true"
Default value. Deletes the audit files that are in the process of being written when the import operation encounters the exception.
"false"
Does not delete the audit files that are in the process of being written when the import operation encounters the exception. The files might contain partial information only.
<ImportObjectId
  value="true"|"false"
/>

Controls whether existing IDs for imported objects are used.

"true"
Default value. Uses the existing IDs of the imported objects.
"false"
Generates new object IDs during the import process. Any relationship that depends on an existing object ID is not updated with the new object ID. Therefore, the relationship data might not be intact and could cause import errors.
<ImportOwner
  value="true"|"false"
/>

Controls whether owner information for the object in the deployment data set is used.

"true"
Default value. Uses the owner information that is found in the deployment data set as the owner of the object.
"false"
Uses the DefaultInstanceOwner property of the class definition of the object in the destination object store as the owner of the object.
<ImportRetention
  value="true"|"false"
/>

Controls whether the retention date from the source object is used on the imported object.

"true"
Default value. When you import a new object, sets the retention date to the same value as the source object. When you update an object, sets the retention date to the same value as the retention date of the source object, if the date entry does not violate FileNet P8 rules. Specifically, you cannot set a retention date to an earlier date, and you cannot change a value of permanent retention to any other value. If your update attempts to violate the rules for an object, an error message is returned.
"false"
When you import a new object, sets the retention date to the FileNet P8 default setting for the retention date property. When you update an object, does not modify the retention date value.
<ImportSecurity
  value="true"|"false"
/>

Controls whether security permission lists for imported objects are used.

"true"
Default value. Uses security permission lists for the objects that are imported.
"false"
Does not use security permission lists for imported objects. Permissions are inherited from the DefaultInstancePermissions property of the class definition of the object in the destination object store.
<RemovePropertyDefinitions 
  value="true"|"false"
/>

Controls whether property definitions are removed from the updated class definitions.

"true"
Removes property definitions from the updated class definitions in the destination environment if those property definitions were deleted from the source environment class definitions.
"false"
Default value. Does not remove property definitions in the updated class definitions in the destination environment, even if those property definitions were deleted from the source environment class definitions.
<ReportFileName>
  filename
</ReportFileName>

Controls the file names of the audit files. This element takes a string value. It is used when the <AuditOption> element has a value of AuditOnly or ImportWithAudit. The audit files are saved with file extensions of .xau or .xao and are located with the converted deployment data set that is used during the ImportDeployDataSet operation. The default value for the file name string is _default.

<StoragePolicy
  type="DefaultOnClassOnDestination"|
    "PropertyOnExportedObject"|
    "SpecificOnDestination">
  <ID>{storage_policy_GUID}</ID>
</StoragePolicy>

Controls the storage policy to use at the destination for storing the imported content.

DefaultOnClassOnDestination
Default value. Uses the storage policy from the class definition at the destination environment. A value for the ID element is not required.
PropertyOnExportedObject
Uses the storage policy from the deployment data set. The value from the exported object can be overridden by using the storage policy data submap and the ConvertDeployDataSet operation. A value for the ID element is not required.
SpecificOnDestination
Uses a specified storage policy that exists at the destination environment. The ID element must contain the GUID of the storage policy, enclosed in braces, {}.
<TransferWorkflows
  value="true"|"false"
/>

Controls whether to transfer the workflow definition into the destination workflow system.

"true"
Transfers the workflow definition into the destination workflow system if a workflow definition document is the current version of the document in the destination environment after it is imported. The workflow definition is not transferred if the AuditOnly value is specified for the <AuditOption> element.
"false"
Default value. Does not transfer the workflow definition.
<UpdateLocalizedProperties
  value="true"|"false"
/>

Controls whether to deploy only the localized display name and descriptive text property values, not the object, to the destination environment.

"true"
Deploys only localized display name and descriptive text property values, and not the entire object, to the destination system. This value can only be used with the CreateNotAllowed value specified for the <CreateOption> element.
"false"
Default value. Deploys all deployable properties. In most cases, leave this option at the default.
<UpdateOption>
  UpdateIfNewer|UpdateAlways|UpdateNotAllowed
</UpdateOption>

Controls the action that occurs if an object exists in the destination object store.

UpdateIfNewer
Default value. Updates the object only if the instance in the deployment data set is newer than the one at the destination.
UpdateAlways
Always updates the object if it exists at the destination.
UpdateNotAllowed
Never updates the object if it exists at the destination. This value cannot be used if the CreateNotAllowed value is specified for the <CreateOption> element.
<UseOriginalTimestamps
  value="true"|"false"
/>

Controls whether certain source system property values are preserved during import.

"true"
Default value. Preserves the source system property values for Creator, DateCreated, DateLastModified, and LastModifier and uses those settings in the destination environment. To modify system properties, you must have the Modify certain system properties privilege on the destination object store. If you do not have adequate permission, insufficient permission errors are returned for each imported object, and each object fails to import.
"false"
Does not preserve the source system property values for Creator, DateCreated, DateLastModified, and LastModifier. The DateCreated and DateLastModified system property values are set to the current date and time. The Creator and LastModifier system property values are set to the user account that is specified in the destination environment connection information.
<WorkflowConfigurationOption>
  Overwrite|Merge
</WorkflowConfigurationOption>

Controls whether the workflow system configuration is imported by using a merge or overwrite strategy.

Overwrite
Adds the imported objects or properties to the destination isolated region, replacing any queues, rosters, and event logs of the same name.
Merge
Default value. If the destination isolated region contains objects or properties of the same name as the names in the source isolated region, evaluates the imported items and applies the appropriate changes.
<Scripts>
  <RunType_order value="full_path"/>
</Scripts>
Controls whether JavaScript scripts are used to complete custom operations. These custom operations can occur before the import process begins, before and after an object is saved to the destination object store, and after the import process completes. The run type for each script, the order in which it runs, and the fully qualified path to the script must be provided. The run type and order is provided as a child element of the <Scripts> element, and the fully qualified path is provided as a value in the value attribute. The following list shows the run types:
  • PreImportScript
  • PreSaveScript
  • PostSaveScript
  • PostImportScript
For more information about the run types, see Import scripts.

The order is a numeral that represents the order in which multiple scripts of the same run type will run. For example, the script that is identified as PreSaveScript0 will run before the script that is identified as PreSaveScript1.



Last updated: March 2016
deploy_mgr_command_line_importoptions_syntax.htm

© Copyright IBM Corporation 2017.
End of change