Workflow task with alert
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2014 02:52 AM
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2014 03:23 AM
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.
Hope this helps.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2014 08:40 AM
Thank you for the answer
It works!
I modify the renderCellTaskInfo method add add the following code:
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>';} // NEWvar 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>    ';} desc = messageDesc + dateDesc + statusDesc + priorityDesc + unassignedDesc; // NEW
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2014 01:31 AM
Great !!! Please mark the topic as solved then. Also, you can mark the comment as useful

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2014 02:51 AM
I have just one more question: is there a way to override the "my-tasks.js" file instead of modify it?
