Show TOC

Retrieving Process Template DetailsLocate this document in the navigation structure

Use

You can retrieve the configuration properties of a process template. For example, you can get information about the current version of the template, as well as for the current active version.

Procedure

  1. Using the InteractiveFormsFacade class and the IFormTemplateManager interface, get a reference to the IFormTemplateInfo interface.
Example
packagecom.sap.caf.eu.gp.api.test;
 
importcom.sap.caf.eu.gp.forms.api.IFormTemplateInfo;
importcom.sap.caf.eu.gp.forms.api.IFormTemplateManager;
importcom.sap.caf.eu.gp.forms.api.InteractiveFormsFacade;
 
publicclass APITest {
 
   IFormTemplateInfo formTemplateInfo = InteractiveFormsFacade.getFormTemplateManager().getFormTemplateInfo(tempId, glVersion, locVersion);
...
}
  1. Call the relevant method for the information that you would like to retrieve.

    For example, you can retrieve the template's form context structure as an instance of the com.sap.caf.eu.gp.exception.api.IGPStructureInfo interface, which represents the context parameters of a GP development object.

Example
IGPStructureInfo formContext= formTemplateInfo.getFormContextStructure();
...

You could use the method above to find out what input structure is required when you are creating a form instance (see Creating Form Instances ) and you want to supply the form context values.