Siebel Business Rules Administration Guide > Reference Topics for Siebel Business Rules >

Output Property Set Schema for Business Rule Service


The following XSD (XML Schema Definition) represents the complete structure of the output property set that is generated by the Business Rule Service business service. If you use the Siebel EAI XML Write to File service to export any Business Rule Service output property set to XML, then the structure of that XML file matches the structure described in the following XSD.

For more information about the EAI XML Write to File service, see XML Reference: Siebel Enterprise Application Integration.

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.siebel.com/xml/BizRule" targetNamespace="http://www.siebel.com/xml/BizRule" elementFormDefault="qualified" attributeFormDefault="unqualified">

   <xs:element name="PropertySet" type="BizRuleOnputPropertySetType">

      <xs:annotation>

         <xs:documentation xml:lang="en">

         ************************************************************************

         There are predefined set of results returned from the Rules Engine.

            Validation - The result of evaluating rules is either valid,

                        or invalid with reasons - validation messages.

            Derivation - The result of evaluating rules is one or more

                        values whether it's derived or not.

            The following predefined methods.

               SetFieldValue

               RaiseErrorText

               SetProfileAttribute

         ************************************************************************

         </xs:documentation>

      </xs:annotation>

   </xs:element>

   <xs:complexType name="BizRuleOnputPropertySetType">

      <xs:sequence>

         <xs:element name="ValidationList" type="ValidationListType"

         minOccurs="0"/>

         <xs:element name="DerivationList" type="DerivationListType"
         minOccurs="0"/>

         <xs:element name="SetFieldValueList" type="SetFieldValueListType"
         minOccurs="0"/>

         <xs:element name="RaiseErrorText" type="xs:string" minOccurs="0"/>

         <xs:element name="SetProfileAttributeList"
         type="SetProfileAttributeListType" minOccurs="0"/>

      </xs:sequence>

   </xs:complexType>

   <xs:complexType name="ValidationListType">

      <xs:sequence>

         <xs:element name="Validation" type="ValidationType"
         maxOccurs="unbounded"/>

      </xs:sequence>

   </xs:complexType>

   <xs:complexType name="DerivationListType">

      <xs:sequence>

         <xs:element name="Derivation" type="DerivationType"
         maxOccurs="unbounded"/>

      </xs:sequence>

   </xs:complexType>

   <xs:complexType name="SetFieldValueListType">

      <xs:sequence>

         <xs:element name="SetFieldValue" type="SetFieldValueType"          maxOccurs="unbounded"/>

      </xs:sequence>

   </xs:complexType>

   <xs:complexType name="SetProfileAttributeListType">

      <xs:sequence>

         <xs:element name="SetProfileAttribute" type="SetProfileAttributeType"
         maxOccurs="unbounded"/>

      </xs:sequence>

   </xs:complexType>

   <xs:complexType name="ValidationType">

      <xs:sequence maxOccurs="unbounded">

         <xs:element name="Message" type="xs:string" minOccurs="0"
         maxOccurs="unbounded"/>

      </xs:sequence>

      <xs:attribute name="Result" type="ValidationResultType" use="required"/>

      <xs:attribute name="BusCompName" type="xs:string" use="required"/>

      <xs:attribute name="BusCompId" type="xs:string" use="required"/>

   </xs:complexType>

   <xs:simpleType name="ValidationResultType">

      <xs:restriction base="xs:string">

         <xs:enumeration value="Valid"/>

         <xs:enumeration value="Invalid"/>

         <xs:enumeration value="Inconsistent"/>

      </xs:restriction>

   </xs:simpleType>

   <xs:complexType name="DerivationType">

      <xs:sequence>

         <xs:element name="Value" type="DerivationValueType"
         maxOccurs="unbounded"/>

      </xs:sequence>

      <xs:attribute name="BusCompName" type="xs:string" use="required"/>

      <xs:attribute name="BusCompId" type="xs:string" use="required"/>

   </xs:complexType>

   <xs:complexType name="DerivationValueType" mixed="true">

      <xs:attribute name="CurrencyCode" use="optional"/>

      <xs:attribute name="ExchangeRateDate" use="optional"/>

   </xs:complexType>

   <xs:complexType name="SetFieldValueType">

      <xs:sequence>

      <xs:element name="Field" type="FieldType" maxOccurs="unbounded"/>

      </xs:sequence>

      <xs:attribute name="BusCompName" type="xs:string" use="required"/>

      <xs:attribute name="BusCompId" type="xs:string" use="required"/>

   </xs:complexType>

   <xs:complexType name="FieldType" mixed="true">

      <xs:attribute name="Name" type="xs:string" use="required"/>

      <xs:attribute name="CurrencyCode" type="xs:string" use="optional"/>

      <xs:attribute name="ExchangeRateDate" type="xs:string" use="optional"/>

   </xs:complexType>

   <xs:complexType name="SetProfileAttributeType">

      <xs:attribute name="Name" type="xs:string" use="required"/>

      <xs:attribute name="Value" type="xs:string" use="required"/>

   </xs:complexType>

</xs:schema>

The following example is an output property set consisting of ValidationList only:

<?xml version="1.0" encoding="UTF-8" ?>

<?Siebel-Property-Set EscapeNames="true"?>

<PropertySet>

   <ValidationList>

      <Validation BusCompId="6-4AH4A" Result="Valid" BusCompName="Expense" />

   </ValidationList>

   </PropertySet>

The following example is an output property set consisting of DerivationList and SetFieldValueList:

<?xml version="1.0" encoding="UTF-8" ?>

<?Siebel-Property-Set EscapeNames="true"?>

<PropertySet>

   <DerivationList>

      <Derivation BusCompId="6-4AEEW" BusCompName="Opportunity">

         <Value>Excellent</Value>

      </Derivation>

   </DerivationList>

   <SetFieldValueList>

      <SetFieldValue BusCompId="6-4AEEW" BusCompName="Opportunity">

         <Field Name="Quality">1-Excellent</Field>

      </SetFieldValue>

   </SetFieldValueList>

</PropertySet>

The following example is an output property set consisting of SetProfileList only:

<?xml version="1.0" encoding="UTF-8" ?>

<?Siebel-Property-Set EscapeNames="true"?>

<PropertySet>

   <SetProfileAttributeList>

      <SetProfileAttribute Value="eft" Name="abc" />

   </SetProfileAttributeList>

</PropertySet>

Siebel Business Rules Administration Guide Copyright © 2007, Oracle. All rights reserved.