Hi aymen,
There is a taskform example in the jBPM distribution file. It demostrate a sample to use freemarker as process form to show and editor business data. You could setup the web-console and try this sample directly.
You could find more information in the User Guide.http://docs.jboss.com/jbpm/v4/devguide/html_single/#taskforms