I am new at activiti. I need to display a jsp page from the activiti workflow. How can i do that. I tried with adding
<userTask id="usertask1" name="User Task" activiti:formKey="C:\Users\au829112\Documents\Userdata\HRSystem\src\main\webapp\WEB-INF\views\flow.jsp"></userTask>
But not working at all.Anyone please help.
I am assuming you are using the default form engine (JuelFormEngine), if you haven't explicitly configured something else, then this is what you are using.
This being the case, then the formkey path should reference a file in your deployment bar file rather than a path on your filesystem. Note the following code from the JuelFormEngine class to retrieve the form template:
Notice how it pulls a resource from the deployment. So, in order to use the form key, you will need to create a .bar file (a simple zip file) and add the process model as well as any referenced form jsp's into the zip file. Then deploy it to the Activiti engine.
Please note that Activiti is extremely flexible and the way the form key is handled will depend entirely on the form engine you are using.
Hope this helps.