cancel
Showing results for 
Search instead for 
Did you mean: 

External form rendering

ssandeep
Champ in-the-making
Champ in-the-making
Hi,

We have a requirement to pop-up a dialogue in between an activiti process, take some input value and based on that input decide which task to execute. Now this pop-up can be an html or a jsp page in the webapp itself, which we want to render in the BPM process.

I have gone through the http://activiti.org/userguide/index.html?_ga=1.3314227.289762320.1452246556#externalFormRendering and
tried the activiti:formKey attribute, but its not working. May be I am not doing it the right way.

E.g. transferAmount.jsp is lying under webapp/pages/transfer folder.
<userTask id="transferAmount" activiti:formKey="/pages/transfer/transferAmount.jsp"/>

Can you please provide some help on how to achieve this?

Thanks,
Sandeep
4 REPLIES 4

hari
Star Contributor
Star Contributor
Hi Sandeep,

The activiti explorer will not look into your jsp's. The way you need to go about your requirement is by building it in a UI framework of your choice with a  task inbox and when one of the tasks from the inbox is opened, you will get to know their form key by the help of getFormKey method in org.activiti.engine.task.Task.

ssandeep
Champ in-the-making
Champ in-the-making
Thanks Hari, but we will not be using Activiti explorer. Its just a spring based webapp running under a container, where we want to leverage BPM process to showcase our own UI interface, i.e. the process executes a sequence of tasks and in between pops-up a dialog for user input and based on that input decides the next task to execute.

hari
Star Contributor
Star Contributor
I don't think you can configure pop-up's in the BPM process. You will have to handle that at your UI layer itself. 

mikovirgoez
Champ in-the-making
Champ in-the-making
Thank you for information., Smiley Happy