cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow task with alert

theoryoflinkin
Champ on-the-rise
Champ on-the-rise
Hi,

I have to develop a custom workflow and one of the requirements is to show an alert view on a task after 15 days.

I did some research and I know how to create a timerEvent with activiti. But I have no idea how to create my alert view.

By alert view, I mean a colored label with some custom text.

The same type of label as the "Unassigned" label (see "non assigné" on the attachement file) would be perfect.

Thanks in advance
4 REPLIES 4

romschn
Star Collaborator
Star Collaborator
The example label you mentioned gets constructed to display from tomcat/webapps/share/components/dashlets/my-tasks.js. Take a look at the implementation there and you will get an idea about how to display your label.

Hope this helps.

Thank you for the answer

It works!

I modify the renderCellTaskInfo method add add the following code:





if (!assignee || !assignee.userName)
{
     unassignedDesc = '<span class="theme-bg-color-5 theme-color-5 unassigned-task">' + this.msg("label.unassignedTask") + '</span>';
}
         
// NEW
var priority = data.properties["bpm_priority"];
var priorityDesc = '';
if (priority == 1) {
   priorityDesc = '<span class="theme-bg-color-5 theme-color-5 unassigned-task">' + this.msg("WAKE UP!!!!") + '</span>&nbsp&nbsp&nbsp&nbsp';
}
         
desc = messageDesc + dateDesc + statusDesc + priorityDesc + unassignedDesc;   
// NEW

Great !!! Please mark the topic as solved then. Also, you can mark the comment as useful Smiley Happy

I have just one more question: is there a way to override the "my-tasks.js" file instead of modify it?