23ESS_EditingAndCompilingObjectDefinitions

Embed Size (px)

Citation preview

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    1/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.1

    Time : Lecture: 35 minutes; labs: 70 80 minutesIntent : To discuss the operations that you can perform on objectdefinitions: editing, verifying, compiling, and archiving.Flow : Editing object definitions, validating object definitions, archivingobject definitions, comparing object definitions, compiling object

    definitions, and testing a configuration.Key Terms:Changed FlagValidating Object DefinitionsExporting Object DefinitionsExport to Archive FileArchive RecommendationsExporting Projects

    Importing Object DefinitionsImport ConflictsCompare ObjectsSource Code Control IntegrationBacking Up the Development DatabaseCompilingUagent.cfgRapid Unit Testing

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    2/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.2

    Each objective and why you need to know should be stated aloud.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    3/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.3

    Y ou can edit object definitions directly in the list editor. Remind studentsthat they need to have the project locked before they can make anychanges. Y ou can type in values or use any picklist provided to selectvalues. An alternative to this method is to use the Property window fromViews > Windows > Properties Window to enter or edit values. Note thatthe Project and Changed properties are not available if you use theProperty window.

    Reference Using Siebel Tools

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    4/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.4

    Y ou can create a new object definition using the list editor. If it is a top-level object, then it needs to be assigned to a locked project

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    5/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.5

    The Changed flag tracks all object definitions that have been edited. Itdoes not matter if you undo the edit later, as the Changed flag will still beset. (Tools does not keep track of prior values once the record iscommitted.) To clear the Changed flag, reset the changed date as shownon the slide.Y ou can see which object definitions have been modified since aspecified Date and Time. Select View > Options > General tab to setDate and Time settings. A check mark appears in the Changed property if that object definition has changed since the Date and Time selected. TheChanged flag does not indicate which property has changed; it only actsas an indicator that something about this object definition has changed.Y ou will not know what values have been changed using this mechanism.Tip: When you set the Date and Time, take an Archive of the object(s) or

    project(s) before you change them. Y ou then have a backup of the objectdefinitions before you start to modify them. If you need to know whatyou changed since that time, pull up the archive file and explore thedifferences in the property values.

    Cha nged Fl a g The Changed flag indicates only that the record has beentouched. A developer may change the value of a propertyand then undo the change. The Changed flag will still beset.

    Some developers will select an object type and then queryfor all object definitions with the Changed flag set. Onlythose definitions that have been edited will display in theOBLE.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    6/24

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    7/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.7

    This slide shows how to validate.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    8/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.8

    Projects can also be archived. All the object definitions contained in that project are archived.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    9/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.9

    This slide explains archive files and how they can be used. Point out tostudents that it is a useful way to back up the changes to the projects thatyou are working on.Archive files are a mechanism of exporting projects from a repository.The file extension is .sif. They can be used to back up projects or to move

    projects from one repository to another.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    10/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.10

    This slide explains archive files and how they can be used. Point out tostudents that it is a useful way to back up the changes to the projects thatyou are working on.Archive files are a mechanism of exporting projects from a repository.The file extension is .sif. They can be used to back up projects or to move

    projects from one repository to another.

    Note: individual objects can be archived, but its not recommended. If youwish to present the procedure for archiving objects, here it is:Top-level object definitions can be exported to an archive file

    Includes all child object definitions for selected parent definitionTo export object definitions

    Select the object definition or definitionsSelect Tools > Add to ArchiveSelect an existing (or create a new) archive file

    Click Save in the Export to Archive File window

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    11/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.11

    This slide explains how to import object definitions from an archive byusing Tools > Import from Archive. Y ou will see the object definitionscontained inside the archive file. Details of the object definitions includethe object type, the object definition name, the project, and who andwhen it was modified. Y ou cannot select individual object definitions toimport from that file. Use the conflict resolution options to specify whatto do with object definitions that exist in the repository and in the file.The next slide will discuss this.This is important to know in case students need to recover from anarchive file to catch up during the configuration labs.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    12/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.12

    This slide explains how to deal with conflicts between definitions in thearchive and those already in the repository. Y ou can set a default strategy(overwrite, merge, or ignore) and then adjust them on an individual basis.Merge is recommended since it preserves user changes already made tothe repository while adding in definitions and properties from the archive.Students need to understand the importing process because they will bedoing it in an upcoming lab. Conflict resolution specifies what SiebelTools should do if the same object definition is found in the file and inthe local repository.Overwrite the object definition in the repository deletes the version inthe target repository and its children, and replaces them with thedefinition(s) from the archive file.Merge the object definitions from the archive file with the definition inthe repository replaces those properties that are different with the onescoming from the file being imported. It adds new child object definitionsto the target if they are not already present.Do not import the object definition from the archive does not changeobject definitions in the target repository.When you select Next, you will see which objects conflict in the nextdialog box.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    13/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.13

    A feature in Siebel Tools is the ability to compare two objects andobserve the differences between them. An object definition in arepository can be compared against an object definition in in the samerepository (for example, you made a copy and do not recall all thechanges that have been made). An object definition can also be comparedagainst an object definition in an archive file, or in some other repository.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    14/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.14

    This slide shows how to invoke an object comparison.

    Not e Typically there will only be one repository available, andthis repository defines an application. This repository is theSiebel repository and it will be available on a localdatabase and on a server database. However, there arecircumstances when multiple repositories will be available:when a group is upgrading to a new version of Siebel

    Applications, or working with multiple applications.

    There can not be multiple repositories in a production

    environment because some run-time components readrepository objects directly from repository tables, not theSRF. There can be multiple SRF files, compiled fromdifferent repositories, provided that they do notcompromise data integrity. Refer to B ookshelf for moreinformation.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    15/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.15

    The differences will be highlighted in the Compare Objects window. Thedisplay uses colored icons to indicate whether two definitions are thesame or different. The lower two panes show the property values thatdiffer.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    16/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.16

    A nice feature is that you can do some editing of the object definitions.Y ou can delete or copy fields in either direction (depending upon thelocked status of each object definition).

    M o difyingDefini tio ns

    A child object definition in either parent object definitioncan be deleted or copied to the other definition.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    17/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.17

    This slide briefly mentions that you can add archives to a source codecontrol system for version management. The Siebel application does notversion control repositories directly.Optionally, you can integrate your check out/check in mechanism inSiebel Tools with a third-party source control system such as MicrosoftSourceSafe. When source control integration is enabled, each time a

    project is checked in to the server repository, an archive file containingall the object definitions in the project is also checked into the sourcecontrol system. As a result, successive versions of the project aremaintained in the source control system.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    18/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.18

    This slide shows the options available to back up local work.Use Archive files to keep backups of object definitions

    Check the definitions back into the server databaseCopy the local database file itself to get a backup of the entiredatabase

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    19/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.19

    This slide reminds students about the concept of compiling. This graphichas appeared in the course a couple of times before. Stress that youcompile into a .srf file in the client installation directory (not the Toolsdirectory), even if you are using the same database.To test the application, a repository file (.srf) needs to be compiled fromwithin Tools. A repository file is a compressed, binary, read-only file thatcontains the configured object definitions that reside in the repository. Asingle repository file can contain the definitions for one or moreapplications. This file is used by the Siebel executable to read the objectdefinitions that determine the applications behavior. The repositorydefinitions are held in this format for faster access.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    20/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.20

    One choice is to compile projects. Typically you do an all projectscompile when you start development, and at major milestones to ensureyou have a clean .srf file. Otherwise, you will typically do incrementalcompiles of selected projects or all locked projects. Doing the latter ensures that you compile all definitions that you have edited. Another

    point to note is that when you get projects to update the local versions of

    those projects, you need to recompile those projects as well to includethem into the .srf. Compiling locked projects will not make that happen.

    Note: The other choice is to compile individual object definitions.Although it can be quicker when projects are large, compiling individualobjects can be problematic (see earlier slide).

    G e t Pr oj ec ts Remember to compile any projects after using Get; thisensures that the object definitions edited by your fellowdevelopers are compiled into your .srf file.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    21/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.21

    Typically you compile into a new .srf file (not the one delivered).

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    22/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.22

    This slide identifies the two types of run-time behavior when a user compiles the SRF.If the Web client is running, at the end of the compile the browser window refreshes and the user is brought back to the view displayedimmediately before the compile, in the newly-compiled version.If the Web client is not running, there are two possible outcomes.If the user checked the "auto-start Web client" check box, the Web clientis started using the debug setting and the user is brought to the standardapplication home page.If the user did not check the auto-start check box, nothing happens.

    Note: client must be installed on the same machine.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    23/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.23

    R eview Question: What do you need to do first before you can edit anobject definition?Answer: Lock it.R eview Question: What does the Change Flag indicate?Answer: It indicates records that have been modified since the Changed

    Date.R eview Question: What does compiling do?Answer: Compiling produces an .srf file which reads object definitionsfrom the repository and creates a flat file representation to be accessed bysiebel.exe at run time.

  • 8/6/2019 23ESS_EditingAndCompilingObjectDefinitions

    24/24

    Siebel 8.0 Essentials

    Editing and Compiling Object Definitions 23.24