queryProcessTemplatesAlt

The queryProcessTemplatesAlt operation returns the process templates that match the specified set of search criteria.

The queryProcessTemplatesAlt operation is similar to the queryProcessTemplates operation, except the SQL query is broken into its constituent parts.

Web Service API example (SOAP):

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:proc="http://www.tibco.com/bx/2009/management/processManagerType">
   <soapenv:Header/>
   <soapenv:Body>
      <proc:queryProcessTemplatesAltInput>
         <proc:select></proc:select>
         <proc:where>DEFINITION.NAME='WelcomeUsers'</proc:where>
         <proc:orderBy>DEFINITION.VERSION</proc:orderBy>
         <proc:pageSize>0</proc:pageSize>
      </proc:queryProcessTemplatesAltInput>
   </soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <queryProcessTemplatesOutput xmlns="http://www.tibco.com/bx/2009/management/processManagerType">
         <processTemplates>
            <processTemplate>
               <basicTemplate>
                  <processQName>
                     <moduleName>/WelcomeUsersDesignSolution/Process Packages/ProcessPackage.xpdl</moduleName>
                     <processName>WelcomeUsers</processName>
                     <version>1.0.0.201106290731</version>
                  </processQName>
                  <description/>
               </basicTemplate>
               <priority>NORMAL</priority> <creationTime>2011-06-29T07:29:58.943-07:00</creationTime>
            </processTemplate>
            <processTemplate>
               <basicTemplate>
                  <processQName>
                     <moduleName>/WelcomeUsersDesignSolution/Process Packages/ProcessPackage.xpdl</moduleName>
                     <processName>WelcomeUsers</processName>
                     <version>1.0.0.201106290831</version>
                  </processQName>
                  <description/>
               </basicTemplate>
               <priority>NORMAL</priority> <creationTime>2011-06-29T08:30:30.543-07:00</creationTime>
            </processTemplate>
         </processTemplates>
         <pagingID>0</pagingID>
      </queryProcessTemplatesOutput>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Service Connector API example (Java):

private void queryProcessTemplatesAltExample()
{
  try
  {
    // Query the process templates using a broken up SQL query
    QueryProcessTemplatesOutput templates = serviceConnectorInstance.queryProcessTemplatesAlt(null,
    "DEFINITION.NAME='SimpleProcess'", "DEFINITION.VERSION", 0);
    System.out.println(templates);
  }
  catch (IllegalArgumentFault e)
  {
    // TODO Auto-generated catch block
    e.printStackTrace();
  }
  catch (OperationFailedFault e)
  {
    // TODO Auto-generated catch block
    e.printStackTrace();
  }
}