cancel
Showing results for 
Search instead for 
Did you mean: 

Using a Custom JSP as a form

bhowmj
Champ in-the-making
Champ in-the-making
Hi All,

Does anyone  know if we can use :
1. A custom JSP in the same server where activiti is running to use that as a form?
2. If yes, what should be the location where we put the custom JSP?
3. How do we map a user Task to this JSP?
3 REPLIES 3

hari
Star Contributor
Star Contributor
Hi Joy,

I hope when you meant activiti, you mean to say activiti-explorer. You cannot link a jsp to a form in activiti-explorer. The way you have to go about this is by implementing your own inbox in your application and your own jsp form to load when that task is opened.

You can use the below API call to get the list of tasks assigned to a user
processEngineInstance.getTaskService().createTaskQuery().taskAssignee(userName).list()

When you have the TaskID of the task which was clicked, you can easily get to know its form properties where in you can have your form name defined there. So based on the form name you will have to load your JSP. 

bhowmj
Champ in-the-making
Champ in-the-making
Hi Hari,

Many Thanks. Will try this and let you know.

bhowmj
Champ in-the-making
Champ in-the-making
Hi Hari,

In addition. I am  trying to do this in Activiti Enterprise 1.4. So if there is other way out for Enterprise Edition to do this please let me know.