queryProcessTemplates

The queryProcessTemplates operation returns the process templates that match the provided SQL query.

See also: queryProcessTemplates

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:queryProcessTemplatesInput>
         <proc:query>SELECT * FROM process WHERE DEFINITION.NAME='WelcomeUsers' ORDER BY DEFINITION.VERSION</proc:query>
         <proc:pageSize>0</proc:pageSize>
      </proc:queryProcessTemplatesInput>
   </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 queryProcessTemplatesExample()
{
  try
  {
    // Query the process templates using a SQL query
    QueryProcessTemplatesOutput templates = serviceConnectorInstance.queryProcessTemplates(
    "SELECT * FROM process WHERE DEFINITION.NAME='SimpleProcess' ORDER BY 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();
  }
}