listProcessTemplates

The listProcessTemplates operation returns the process templates that match the input criteria. It allows you to limit the process templates returned according to those in a specified module, those with a specified template name, or those of a specified version.

Leaving all listProcessTemplates parameters blank causes the operation to return all process templates.

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:qualifiedProcessName>
         <proc:moduleName></proc:moduleName>
         <proc:processName></proc:processName>
         <proc:version></proc:version>
      </proc:qualifiedProcessName>
   </soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <basicProcessTemplates xmlns="http://www.tibco.com/bx/2009/management/processManagerType">
         <basicProcessTemplate>
<processQName>
               <moduleName>/HelpDesk/Process Packages/HelpDesk.xpdl</moduleName>
               <processName>InternalHelpDesk</processName>
               <version>1.0.0.201105061158</version>
            </processQName>
            <description>*** Generated by TIBCO Business Studio.</description>
         </basicProcessTemplate>
         <basicProcessTemplate>
            <processQName>
               <moduleName>/WelcomeUsersDesignSolution/Process Packages/ProcessPackage.xpdl</moduleName>
               <processName>WelcomeUsers</processName>
               <version>1.0.0.201106290831</version>
            </processQName>
            <description/>
         </basicProcessTemplate>
                   .
                   .
                   .
      </basicProcessTemplates>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Service Connector API example (Java):

private void listProcessTemplatesExample()
{
  // Create an empty QualifiedProcessName as we want to query all process templates
  QualifiedProcessName process = QualifiedProcessName.Factory.newInstance();
  try
  {
    // Query the process templates
    BasicProcessTemplate[] templates = serviceConnectorInstance.listProcessTemplates(process);
  }
  catch (IllegalArgumentFault e)
  {
    // TODO Auto-generated catch block
    e.printStackTrace();
  }
  catch (OperationFailedFault e)
  {
    // TODO Auto-generated catch block
    e.printStackTrace();
  }
}