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.
package com.sap.caf.eu.gp.api.test;
import com.sap.caf.eu.gp.forms.api.IFormTemplateInfo; import com.sap.caf.eu.gp.forms.api.IFormTemplateManager; import com.sap.caf.eu.gp.forms.api.InteractiveFormsFacade;
public class APITest {
IFormTemplateInfo formTemplateInfo = InteractiveFormsFacade.getFormTemplateManager().getFormTemplateInfo(tempId, glVersion, locVersion); ... } |
2. 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.
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.