cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Prompt message, when Clicking on Task done Button in Jbpm workfow??

udaybhaskarbali
Champ in-the-making
Champ in-the-making
Hi All,
       I  have Alfresco 4.2 and I create to create a JBPM workflow. I have one requirement.i.e, when clicking on task done button rise a prompt message. I checked transitions.ftl, .xml and .js files but, I didn't find any solution. Please tell me Task done button Event. Please guide me as early as possible…
4 REPLIES 4

scouil
Star Contributor
Star Contributor
Hello,

Let's start with a global optional comment.
Activiti is the preferred workflow engine over jbpm. I realise it might be a bit late now, but for your next workflows, consider giving activiti a try.
It's quite powerful and the eclipse designer plugin makes it really easy.

Then your question:
Have you tried overriding the form button with a custom template? It if doable using controls:
http://wiki.alfresco.com/wiki/Forms#control
This way you can define your component by forking the original one and handle whatever you want to do with your popup.
I never tried to use controls on the transition buttons but theoretically, it should work.

Hi Scouil,
          Thanks for your reply. Actually, my requirement is in jbpm workflow. when I click on Task done button It should ask "do you want to continue or not", then based on our reply remaining process will continue and where should I control the button events and Thanks for your suggestion.  I knew activiti bpm.  I did some examples also.

scouil
Star Contributor
Star Contributor
Hi,

And so your workflow would take 2 different paths depending on the user's choice to continue or not?
Then if possible, I'd advise you to add a boolean as a metadata saying "Do you want to continue?".
This way you have 0 work to do. A popup would require a bit more work.

Is it a viable option to just have it as a workflow metadata or is the popup requirement mandatory?

Hi Scouil,
         I got the popup when clicking on taskdone button. I found another way. Thanks for your reply and your support