
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
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); ... } |
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.
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.