Launching TriDK XML Setup in command line mode
Launching TriDK SML Setup in command line mode is recommended when batch files are created to execute multiple commands without any user interaction, or when multiple Content Manager application servers must be updated .
Before you begin
About this task
Procedure
- Create a new batch file (*.bat).
- In the batch file, specify the TriDK XML Setup executable.
- Provide the necessary parameters as described below.
Option Description -App The Content Manager application names that are running on the server. The names are configuration-specific. The default application name is ISHCM. -User The user name of a user with administrative permissions -Pwd The user's password. -Action The action to be performed. The values are: - "Complete" or "Compl"
- "Difference" or "Diff"
- "Execute" or "Exec"
- "Export" or "Exp"
- "Template" or "Templ"
-In The filename of the input XML script. The file must be valid according to the TriDKSetup Schema. -Out The filename of the output XML script. -Log The filename of the log file. The log file contains the same information that is displayed on the screen in interactive mode. Return codes are added to the Result Script. -StopOnError Stop whenever an error occurs. If this parameter is not specified, the tool tries to execute all actions. -DiffMode This parameter can be used to indicate which changes must be reported. The values are: - "1" Use to report all changes including delete and remove actions.
- "2" Use when you do not want to report deleted items.
- "4" Use when you do not want to report sequence changes in the database.
-TriDKObject This parameter can be used to specify which object you want to create or update. -ElementName The elementname of the new TriDKObject. -Language The language must be a valid database language. It is placed in the output file as xml:lang. The only valid database language is English (value: 'EN'). -FieldType The type definition of the field. -FieldAssist The elementname of the LOV associated with the field. -MetaType The metatype. -CardType The card type.
Examples:
%TRIDKSETUP_LOCATION% -App %TRIDKSETUP_TRIDKAPP% -User %TRIDKSETUP_USERNAME% -Pwd %TRIDKSETUP_PASSWORD% -Action "compl" -In "CreateEDTSVG.xml" -Out "CreateEDTSVG_complete.xml" -Log %TRIDKSETUP_LOG%
%TRIDKSETUP_LOCATION% -App %TRIDKSETUP_TRIDKAPP% -User %TRIDKSETUP_USERNAME% -Pwd %TRIDKSETUP_PASSWORD% -Action "diff" -Diffmode "2" -In "CreateEDTSVG_complete.xml" -Out "CreateEDTSVG_differences.xml" -Log %TRIDKSETUP_LOG%
%TRIDKSETUP_LOCATION% -App %TRIDKSETUP_TRIDKAPP% -User %TRIDKSETUP_USERNAME% -Pwd %TRIDKSETUP_PASSWORD% -Action "exec" -StopOnError "n" -In "CreateEDTSVG_differences.xml" -Out "CreateEDTSVG_result.xml" -Log %TRIDKSETUP_LOG%