Link to a task instead to a document in an email sent by a workflow

He we will discuss about how to make customization and improvement to the OpenKM source code.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Link to a task instead to a document in an email sent by a workflow

Post by Petr_Valenta » Wed May 31, 2017 7:41 am

Hello

Is there any possibility to cutomize emails sent in case of workflow tasks to contain not a link to a document but a link to the workflow task (meaning that the link in the email sent the user to the task in his dashboard)?

My environment

Server:
VMWare 12 Pro
Memory 12 GB
1 proc - 4 cores
Centos 7 Server
PostgreSQL 9.2.18
OpenKM 6.3.4

Dev PC:
VMWare 12 Pro
Memory 8 GB
1 proc - 4 cores
Ubuntu 16.04
java 1.6
JBoss Developer Studio 5.0.0.GA - installed according to https://docs.openkm.com/kcenter/view/wf ... io-5x.html (jbdevstudio-product-universal-5.0.0.v20120615-1714-H213-GA.jar + jbpm-installer-3.3.1.GA.jar)

Many thanks in advance for your answer.

Petr Valenta
Last edited by Petr_Valenta on Sun Aug 13, 2017 3:53 pm, edited 1 time in total.

jllort
Moderator
Moderator
Posts: 9708
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Link to a task instead to a document in an email sent by a workflow

Post by jllort » Sat Jun 03, 2017 2:17 pm

That means you want a link to follow the next task and open the next form, is that the idea ?

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: Link to a task instead to a document in an email sent by a workflow

Post by Petr_Valenta » Mon Jun 05, 2017 8:41 am

Hello

I am not sure if we understand each other.

Nowaday when there is a running workflow and the task according to "Task Node" is generated, a mail with a link to the processed document is sent.
From: noreply@openkm.com
To: admin@xxxx.xx.xx
Subject: Task 'potvrdit' (281)
Date: Tue, 30 May 2017 13:49:55 +0200 (CEST)

Hi,

Task 'Potvrdit' (related to document http://xyz.xy:8080/OpenKM/index.jsp?uui ... 58e0c3ba7e) has been assigned to you.

Thanks.
Now I have to go to OpenKM GUI by clicking on the document's link, go to a dashboard tab, open the workflow sub-tab and try to guess which task is that one, which contains the sent document.

I would like to receive an email, which directs me directly into the task in the dashboard mentioned above. How could I achieve that?

Best Regards

Petr Valenta

jllort
Moderator
Moderator
Posts: 9708
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Link to a task instead to a document in an email sent by a workflow

Post by jllort » Thu Jun 08, 2017 6:24 am

You can open the workflow task directly with the parameter index.jsp?taskInstanceId=XXX ( you can take a look at Main.java class look for taskIntanceId variable and follow what happens when you set it ).

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: Link to a task instead to a document in an email sent by a workflow

Post by Petr_Valenta » Wed Jun 14, 2017 11:32 am

This is not working - it sends me into the Tab Desktop, into the root folder.

I'm using Id showed in the tab Dashboard, Workflow, TASK detail.

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: Link to a task instead to a document in an email sent by a workflow

Post by Petr_Valenta » Wed Jun 14, 2017 11:33 am

This is not working - it sends me into the Tab Desktop, into the root folder.

I'm using Id showed in the tab Dashboard, Workflow, TASK detail.

jllort
Moderator
Moderator
Posts: 9708
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Link to a task instead to a document in an email sent by a workflow

Post by jllort » Fri Jun 16, 2017 8:02 am

You must set the right taskInstanceId and must be assigned to you, otherwise will not jump to dashboard. If it does not going right to you, should debug de code.

- Take a look at Main.java ( line 143 )
- StartUp.java ( line 354
and follow the code

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest