cancel
Showing results for 
Search instead for 
Did you mean: 

using jsp instead of forms

bluerain
Champ in-the-making
Champ in-the-making
I have Jsp based UI instead of the activiti forms from where I need to call the workflow processes.
How can I achieve this? Any suggestions?
9 REPLIES 9

frederikherema1
Star Contributor
Star Contributor
Activiti can be embedded very easy in your JSP-app, just add the war and configuration (see userguide). Have a look at the form-properties. This allows you to declare render-independant properties on a form (start or taskform) on your processes. You could write JSP-logic based on those, to render a form.


@see http://activiti.org/userguide/index.html#externalFormRendering

Hi Frederik/All,

Please can you expalin in detail about dynamic form rendering or how to add jsps in activiti community app.

Also Please help me on how to import excel data in to Database in activitiapp.Kindly help asap.

Thanks and Regards,

Deepak P

stefanl
Champ in-the-making
Champ in-the-making
I'm also trying the same but it's kind of hard to get started: does anyone know of an example for this or some code to get started?

TIA

stephen1
Champ in-the-making
Champ in-the-making
I'm trying to do something similar with an even more ancient technology (tapestry 4 eek). Shame a plugin for developed for Tapestry 5 + Activiti was developed. Sooner I convince management to use something more of this century, the better off we'll be. If it can be done with raw JSP's, I suppose it can be done with any view component, it's just a case of knowing how to assemble it properly for Activiti to use. I agree that a few examples would be nice, I got the impression there was a strong bias towards Vaadin, but I doubt the number of companies out there that are keen to use Activiti are using Vaadin; they probably want to integrate the engine into some legacy framework, which is the case for me. If I can free up some work time, I'll try and experiment with it and if I can get it going, I'll post up the code.

Stephen

frederikherema1
Star Contributor
Star Contributor
Not exactly sure why examples are needed. Activiti is a library and you have to integrate it into your view-layer, exactly the way you would integrate your own services. You have to make your controllers talk tale to the Java-API of activiti. Look in the user guide how to configure and bootstrap a ProcessEngine instance, which exposes all services needed (e.g.. TaskService, RuntimeService, …). These services are touched in the user guide AND have a comprehensive javadoc associated with them.

So activiti is no different than any other service or framework that you call from your UI…

vamsi25
Champ in-the-making
Champ in-the-making
Hi
when using jsp to submit the form what should be formkey ? is it something like below ?

activiti:formKey="…path/submit.jsp">

frederikherema1
Star Contributor
Star Contributor
The form key doesn't matter if you're posting from JSP, you decide what data you submit to the start-form/task-form. The form key is only used to use built-in form-rendering (deprecated) using a simple template-mechanism. When you're using JSP (or any other view-mechanism) you should use the API to either post FormData or pass in a map of variables (see user guide and javadocs).

prakash1
Champ in-the-making
Champ in-the-making
Hi

I have one sample jsp which I put into webcontent folder of one activiti project. The project is working fine and the login page is comming properly in Tomcat.  But when I am calling that specific jsp page individually from that acticiti project, it is not working.

Please suggest me the way how can I execute the sample jsp page individually from activiti project

Thanks in advance,
-Prakash

jbarrez
Star Contributor
Star Contributor
I'm totally not understanding what you are trying to do… where do you add the jsp? What is the 'activiti project' you talk about?