Removing a Candidate Query Configuration

Candidate query configurations are also removed using the setCandidateQueries operation.

Procedure

  1. Get the organization model with candidate queries.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:org="http://orgmodel.api.de.bpm.tibco.com">
       <soapenv:Header/>
       <soapenv:Body>
          <org:getOrgModel model-version="-1" include-candidate-queries="true"/>
       </soapenv:Body>
    </soapenv:Envelope>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Header/>
       <SOAP-ENV:Body>
          <getOrgModelResponse model-version="1" xmlns="http://orgmodel.api.de.bpm.tibco.com">
             <group guid="_D61a8GfOEeOiGOb4k4LDUg" label="Group1" name="Group1" xmlns="">
                <allocation-method method="ANY"/>
                <group guid="_E33q8GfOEeOiGOb4k4LDUg" label="Group3" name="Group3">
                   <allocation-method method="ANY"/>
                   <candidate-query base-dn="OU=Swindon" container-id="73" query="(objectclass=person)" search-scope="ONELEVEL"/
                </group>
             </group>
             <group guid="_ETiO0GfOEeOiGOb4k4LDUg" label="Group2" name="Group2" xmlns="">
                <allocation-method method="ANY"/>
                <group guid="_F13kQGfOEeOiGOb4k4LDUg" label="Group5" name="Group5">
                   <allocation-method method="ANY"/>
                   <group guid="_GzecAGfOEeOiGOb4k4LDUg" label="Group7" name="Group7">
                      <allocation-method method="ANY"/>
                   </group>
                </group>
             </group>
             <organization guid="_k44DgWDiEeOXirad8gzrtg" label="Organization" name="Organization" xmlns="">
                <schema-type guid="_k44DiWDiEeOXirad8gzrtg" label="Public Company" name="PublicCompany"/>
                <allocation-method method="ANY"/>
                <org-unit guid="_4WIGYGDiEeOXirad8gzrtg" label="Head Office" name="HeadOffice">
                   <schema-type guid="_k44Di2DiEeOXirad8gzrtg" label="Department Type" name="DepartmentType"/>
                   <allocation-method method="ANY"/>
                   <position guid="_5lk8EGDiEeOXirad8gzrtg" ideal-number="1" label="Chief Executive" name="ChiefExecutive">
                      <schema-type guid="_k44DkWDiEeOXirad8gzrtg" label="Standard Position Type" name="StandardPositionType"/>
     <allocation-method method="ANY"/>
                   </position>
                   <org-unit guid="_Y9FC0HnvEeOXwIHqtnmxgg" label="Board Of Directors" name="BoardOfDirectors">
                      <schema-type guid="_k44Di2DiEeOXirad8gzrtg" label="Department Type" name="DepartmentType"/>
                      <allocation-method method="ANY"/>
                      <position guid="_aPaNYHnvEeOXwIHqtnmxgg" ideal-number="1" label="Director" name="Director">
                         <schema-type guid="_k44DkWDiEeOXirad8gzrtg" label="Standard Position Type" name="StandardPositionType"/>
                         <allocation-method method="ANY"/>
                         <candidate-query base-dn="OU=London" container-id="73" query="(objectclass=person)" search-scope="ONELEVEL"/
                      </position>
                   </org-unit>
                </org-unit>
                <org-unit guid="_6dgpoGDiEeOXirad8gzrtg" label="Branches" name="Branches">
                   <allocation-method method="ANY"/>
                </org-unit>
             </organization>
          </getOrgModelResponse>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
  2. Remove the candidate queries.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:org="http://orgmodel.api.de.bpm.tibco.com">
       <soapenv:Header/>
       <soapenv:Body>
          <org:setCandidateQueries>
             <remove>
                <!--1 or more repetitions:-->
                <position>_aPaNYHnvEeOXwIHqtnmxgg</position>
                <!--1 or more repetitions:-->
                <group>_E33q8GfOEeOiGOb4k4LDUg</group>
             </remove>
          </org:setCandidateQueries>
       </soapenv:Body>
    </soapenv:Envelope>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Header/>
       <SOAP-ENV:Body>
          <setCandidateQueriesResponse xmlns="http://orgmodel.api.de.bpm.tibco.com"/>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
  3. Get the organization model again to confirm removal of candidate queries.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:org="http://orgmodel.api.de.bpm.tibco.com">
       <soapenv:Header/>
       <soapenv:Body>
          <org:getOrgModel model-version="-1" include-candidate-queries="true"/>
       </soapenv:Body>
    </soapenv:Envelope>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Header/>
       <SOAP-ENV:Body>
          <getOrgModelResponse model-version="1" xmlns="http://orgmodel.api.de.bpm.tibco.com">
             <group guid="_D61a8GfOEeOiGOb4k4LDUg" label="Group1" name="Group1" xmlns="">
                <allocation-method method="ANY"/>
                <group guid="_E33q8GfOEeOiGOb4k4LDUg" label="Group3" name="Group3">
                   <allocation-method method="ANY"/>
                </group>
             </group>
             <group guid="_ETiO0GfOEeOiGOb4k4LDUg" label="Group2" name="Group2" xmlns="">
                <allocation-method method="ANY"/>
                <group guid="_F13kQGfOEeOiGOb4k4LDUg" label="Group5" name="Group5">
                   <allocation-method method="ANY"/>
                   <group guid="_GzecAGfOEeOiGOb4k4LDUg" label="Group7" name="Group7">
                      <allocation-method method="ANY"/>
                   </group>
                </group>
             </group>
             <organization guid="_k44DgWDiEeOXirad8gzrtg" label="Organization" name="Organization" xmlns="">
                <schema-type guid="_k44DiWDiEeOXirad8gzrtg" label="Public Company" name="PublicCompany"/>
                <allocation-method method="ANY"/>
                <org-unit guid="_4WIGYGDiEeOXirad8gzrtg" label="Head Office" name="HeadOffice">
                   <schema-type guid="_k44Di2DiEeOXirad8gzrtg" label="Department Type" name="DepartmentType"/>
                   <allocation-method method="ANY"/>
                   <position guid="_5lk8EGDiEeOXirad8gzrtg" ideal-number="1" label="Chief Executive" name="ChiefExecutive">
                      <schema-type guid="_k44DkWDiEeOXirad8gzrtg" label="Standard Position Type" name="StandardPositionType"/>
                      <allocation-method method="ANY"/>
     </position>
                   <org-unit guid="_Y9FC0HnvEeOXwIHqtnmxgg" label="Board Of Directors" name="BoardOfDirectors">
                      <schema-type guid="_k44Di2DiEeOXirad8gzrtg" label="Department Type" name="DepartmentType"/>
                      <allocation-method method="ANY"/>
                      <position guid="_aPaNYHnvEeOXwIHqtnmxgg" ideal-number="1" label="Director" name="Director">
                         <schema-type guid="_k44DkWDiEeOXirad8gzrtg" label="Standard Position Type" name="StandardPositionType"/>
                         <allocation-method method="ANY"/>
                      </position>
                   </org-unit>
                </org-unit>
                <org-unit guid="_6dgpoGDiEeOXirad8gzrtg" label="Branches" name="Branches">
                   <allocation-method method="ANY"/>
                </org-unit>
             </organization>
          </getOrgModelResponse>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>