Tutorial: Extending a Management Center tool to support workspaces for a custom object
Attention:
This tutorial is currently under revision. The content might contain
errors or inaccuracies. Subscribe to this page to be notified when
an updated version is available. In this tutorial, you add workspace support to the
Recipes tool by enabling workspace support for the Project service
module. This process prevents the same object from being edited by
users in different task groups within the same workspace. Workspaces
in the Management Center use BOD service modules. You can customize
which aspects of the physical and logical layers of a BOD service
module are under change control. This change control data is passed
back to the presentation layer where you can show it in the Management
Center workspaces.
Learning objectives
After completing this tutorial, you should familiar with the following concepts:
- Content and operational data.
- The change control mediator for nouns.
- The Get request access profile.
- The InsertMoreData command.
- Enable workspace support for a service module
- Enable change control for a noun
- Include change control information in the response of a Get service
- Create a workspace with task groups and tasks by using Workspace Administration Tool
Time required
Expect this tutorial to about 2 hours to complete.Skill level
This tutorial is intended for advanced WebSphere Commerce developers who are responsible for customizing the Management Center. To complete this tutorial, familiarize yourself with the following terms and concepts:- Web services
- XML
- WebSphere Commerce services
- Rational Application Developer
- Management Center framework
- Data service layer
- Business object mediator
- Content managed table
- Operational table
System requirements
Before you begin this tutorial, complete the following tasks:- Install WebSphere Commerce Developer Version 7
- Install DB2 V9.5.1
- Enable workspaces.
- Complete the Creating the Project BOD service module tutorial.
- Complete the Adding a Recipes tool to the Management Center tutorial.
- Complete the Supporting extended sites in the Recipes tool tutorial (optional).
- Complete the Modifying the storefront to display Recipe information tutorial.
- Enable staging for workspaces for this tutorial. Set the value
of StagingEnable to true in the file WC_eardir\xml\config\wc-server.xml.
For example:
<Staging ContentMgmtEnable="false" DBName="" DBServerName="" DBServerPort="" DBUserID="" DBUserPwd="" DataSourceName="" DatabaseType="" NumWorkspaces="5" ReadPrefix="WCR" StagingEnable="true" WritePrefix="WCW" display="false"/>
- This tutorial uses the DB2 database. Verify that your WebSphere
Commerce Developer installation is using a DB2 database.
User ID Organization Roles ConMgr Root Organization Workspace Manager ProMgrA Root Organization Recipe Manager, Product Manager, Workspace Content Contributor ProMgrB Root Organization Recipe Manager, Product Manager, Workspace Content Contributor ProMgrApp Root Organization Recipe Manager, Product Manager, Workspace Task Group Approver
Tutorial resources
Before you begin
this tutorial, extract the code samples to a temporary directory,
such as C:\Temp: