3.1.4.10 BusinessRulesUpdate

The BusinessRulesUpdate operation updates existing business rules, conditions, or actions within the MDS repository.

Business rule items in the request are matched to existing repository items by GUID only. Existing GUIDs MUST be specified for items to be updated. Each GUID that is not found is returned as a separate error.

Each item's update is attempted and committed as an individual transaction regardless of the failure of other items. The operation does not complete a business rule name change that results in a duplicate name within the same context.

A model of business rules or components for update is created by using the BRModel that contains one or more BusinessRule data types. The BusinessRules data type includes placeholders for all information about a business rule, including its descriptive and state information and its component conditions and actions.

A version MUST be specified and is used to validate specified domain-based attribute values in arguments of conditions or actions. Attribute values that are not found result in errors.

The BusinessRulesUpdate operation returns a standard MessageResponse message.

The following is the WSDL definition of the BusinessRulesUpdate operation.

Applies to MDS 2008R2

     <wsdl:operation name="BusinessRulesUpdate">
       <wsdl:input wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesUpdate" name="BusinessRulesUpdateRequest" message="tns:BusinessRulesUpdateRequest" />
       <wsdl:output wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesUpdateResponse" name="MessageResponse" message="tns:MessageResponse" />
    </wsdl:operation>

Applies to MDS 2012

     <wsdl:operation name="BusinessRulesUpdate">
       <wsdl:input wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesUpdate" name="BusinessRulesUpdateRequest" message="tns:BusinessRulesUpdateRequest"/>
       <wsdl:output wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesUpdateResponse" name="MessageResponse" message="tns:MessageResponse"/>
       <wsdl:fault wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesUpdateEditionExpiredMessageFault" name="EditionExpiredMessageFault" message="tns:IService_BusinessRulesUpdate_EditionExpiredMessageFault_FaultMessage"/>
       <wsdl:fault wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/BusinessRulesUpdateSkuNotSupportedMessageFault" name="SkuNotSupportedMessageFault" message="tns:IService_BusinessRulesUpdate_SkuNotSupportedMessageFault_FaultMessage"/>
    </wsdl:operation>