cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a hyper link in user task

rascaly2k
Champ in-the-making
Champ in-the-making
I have tried searching the forum in the attempts to hopefully do something simple .
In the Usertask I would like to add a hyper link, so the user can easily go to the url to identify if it is something they would like to really accept or reject .

So I was able to add the hyperlink in the documentation element
<userTask id="testHyperLinkTask" name="Incorporate feedback" activiti:assignee="kermit" >
      <documentation> <a href="http://www.w3schools.com">Visit W3Schools</a> </documentation>
    </userTask>


Unfortunately when this gets rendered by Vaadin it use text-area to display the text in the documentation element. And since I have a href it displays the url as <a href="http://www.w3schools.com"> and does not get rendered to a hyperlink

Any suggestions would be much appreciated.

Thanks
-Jason
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
I'm not following why you linked to w3schools 3 times …

I would need some code with the changes you did to understand what is happening for you.

activitinewbie
Champ in-the-making
Champ in-the-making
HI,

I am in the same boat as rascaly2k. I am fairly new to Activiti and looking at a task as this was one of the first things that hit me when I went through a basic workflow.

Imagine there are multiple tasks getting created for a manager when lets say an action is performed by his employees and we want to add details in each task about employee so that the manager knows whether to approve or reject the task based on the employee details in Task.

So if you want to add more detail in the Task UI Page in a separate section below the heading or below the Subtasks section then how can we accomplish this. Can we add a hyperlink there which can be directed to another page.

How would we proceed with such a task.

Any response is appreciated.

jbarrez
Star Contributor
Star Contributor
Either you use the description for that or you create a new form property type. Either way, it would need some fiddling in the Explorer code.