Welcome to the Alfresco Forms Development Kit (FDK).
The Alfresco FDK was introduced in the 3.3 release, it provides support for administrators and developers who wish to configure, extend or customize forms in Spring Surf based applications, for example, Share.
Installing the AMP
The AMP (alfresco-fdk.amp) can be installed into the alfresco.war file using the normal techniques, either with the Module Management Tool or using the apply_amps script provided with the installer.
Installing the JAR
Presuming the Tomcat instance you are using has been configured to use the shared folder you can simply drop the JAR file (alfresco-fdk.jar) into <tomcat>/shared/lib.
You can of course drop the JAR file into the application's WEB-INF/lib folder too i.e. <tomcat>/webapps/<appname>/WEB-INF/lib but this will be removed when you update or upgrade your application so the technique above is recommended.
If you are installing the FDK into an older Spring Surf application that does not contain the required import statement the fdk-context.xml file can be manually added to your application using the following import:
If you are building Alfresco from source using a development environment you may wish to also build and deploy the FDK.
The main Ant build.xml file provides several targets to allow for this.
Builds the repository and client FDK files
Builds the FDK AMP and installs it in the repository WAR file, the 'deploy-webclient-tomcat' needs to be called subsequently to deploy the WAR file to Tomcat
Deploys the FDK repository files to Tomcat in exploded mode
Builds the FDK client JAR and deploys it to Share
Deploys the FDK client files to Share in exploded mode
Using the FDK
The AMP installs an example model and the JAR provides a 'Form Console' page, form configuration for the example model and some Share specific configuration overrides.
The 'Change Type' action in Share will now have three options (for cm:content nodes), 'Gadget', 'Company Details' and 'Everything'. The 'Apply Aspect' action in Share will now have an 'Exif' aspect available.
The FDK also provides an extension point (alfresco/web-extension/fdk-config-custom.xml) so that further form configuration can be provided and tested via the form console page.
If you've worked with forms in the 3.2 release you may recognize the Form Console as the old form-test page available in Share. It has now been renamed and moved to the FDK so it can be used in any Spring Surf based application.
The 'Form Console' page can be accessed via the following URL:
In it's current state the FDK provides a demonstration of what can be done with some of the features of the forms engine, all the samples previously distributed with Share have been moved into the FDK and made available in an easy to install package, this includes most the examples from Episode 35 of Tech Talk Live where the forms engine was discussed and demonstrated.
The following sections show a few screenshots and configuration of the example forms.
When an instance of the 'Gadget' (fdk:gagdet) type is created and it's metadata edited the following form is displayed.
The FDK installs an aspect named 'Exif' (fdk:exif) which represents a subset of the standard EXIF metadata. When this aspect or the built-in dublin core aspect are applied to a cm:content node and it's metadata is edited the following form is displayed, the expanded accordion component is also shown.