Develop > Business logic layer > Workspaces support for BOD service modules


Business context service parameters for business object documents

Context data parameters have been provided to represent workspace, taskgroup and task. Additional context parameters permit the client to specify these additional context values on the service request. Similar to locale and storeId, clients of a service can indicate these additional authoring context variables in the request.

Context name Description
workspace.name The identifier of the workspace which is the workspace of the content context.
workspace.taskGroup The identifier of the task group which is the task group found in the task context.
workspace.task The identifier of the task that is found as the task in the task context.

A request including these context values is shown in the following example:

<_cat:GetCatalogEntry xmlns:_cat="http://www.ibm.com/xmlns/prod/commerce/9/catalog" xmlns:_wcf="http://www.ibm.com/xmlns/prod/commerce/9/foundation" xmlns:oa="http://www.openapplications.org/oagis/9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  
<oa:ApplicationArea xsi:type="_wcf:ApplicationAreaType">    
<oa:CreationDateTime>2007-01-25T16:44:16.004Z</oa:CreationDateTime>    
<oa:BODID>341d6660-acbd-11db-a3a8-832d45b924b0</oa:BODID>    
<_wcf:BusinessContext intent="Authoring">      
<_wcf:ContextData name="storeId">511</_wcf:ContextData>      
<_wcf:ContextData name="workspace.name">W_10001</_wcf:ContextData>      
<_wcf:ContextData name="workspace.taskGroup">TG_10001</_wcf:ContextData>      
<_wcf:ContextData name="workspace.task">T_10001</_wcf:ContextData>    
</_wcf:BusinessContext>  
</oa:ApplicationArea>  
<_cat:DataArea>    
<oa:Get>      
<oa:Expression expressionLanguage="wcf:XPath">{wcf.ap=IBM_Admin_Details}/CatalogEntry[CatalogEntryIdentifier[UniqueID='51100000117']]</oa:Expression>    
</oa:Get>  
</_cat:DataArea>
</_cat:GetCatalogEntry>

IBM_Admin_ prefixes all services intended to be used by admin/CMC based services calls. Access profiles which do not follow the new naming conventions continue to function correctly, as compatibility is maintained with earlier versions. It is recommended, however, that they are followed for existing access profiles, and when making changes to future access profiles. See Access profile naming conventions for more information.

The intent attribute for the <_wcf:BusinessContext> element provides the Business Context Service with the intent of the request. "Authoring" is used to indicate that the request is to be used in the authoring environment, rather than the storefront.


Related tasks

Enable workspaces support for a custom table in an existing WebSphere Commerce BOD service module

Enable change control for a noun

Enable change control for a noun part

Include change control information in the response of a Get service


+

Search Tips   |   Advanced Search