cancel
Showing results for 
Search instead for 
Did you mean: 

Export Form in a Java Web App

burn83
Champ in-the-making
Champ in-the-making
Hi…i'm developping a Web Application in order to complete my tasks externally from activiti

I have write a xml file, that i 've deployed with success on Activiti that render a simply login form, that requires username and password.
Now can i export this form in my web app using API!??!
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
Now can i export this form in my web app using API!??!

I've really got no clue what you mean with that.

Do you want to use the form properties in your xml in your own app? If so, check how we do it in the Explorer sample app.

burn83
Champ in-the-making
Champ in-the-making
No no…i would export a form mask in a external JSP page!

When i write my xml and i make an import in activiti, him renderer a form in respect with my activiti:field..

So, can i capture this form, through API, and represent it in my jsp web page!?

I would simply reproduce a form of Activiti….

Thanks in advance…and i'm sorry for my previous explanation…i talk english just a little bit.

jbarrez
Star Contributor
Star Contributor
So, can i capture this form, through API, and represent it in my jsp web page!?

Yes. People have integrated it with jsf, flex and we did it with Vaadin.

You can get all the information you need in your jsp through the FormService API.

burn83
Champ in-the-making
Champ in-the-making
can you post a brief example!?

…in my Jsp Page i've write this…

ProcessEngine processEngine = h2.connection(); //everybody ok!
// in order to start my db connection..

FormService formService = processEngine.getFormService();
// instance a formservice..that contains some methods that returns Object (getStartFormData etc etc..)

Where it's contained the form, or better, the GUI Form, and how render it?!

jbarrez
Star Contributor
Star Contributor
It seems you need to learn first a bit about Activiti's form: check out http://activiti.org/userguide/index.html#forms

Or check the Explorer source code, and see how the form properties are used there.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
And using plain jsp is very, very ancient, antique, old etc… Maybe a more modern ui framework might help to.