Page 1 of 1

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

PostPosted:Wed May 31, 2017 7:41 am
by Petr_Valenta
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

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

PostPosted:Sat Jun 03, 2017 2:17 pm
by jllort
That means you want a link to follow the next task and open the next form, is that the idea ?

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

PostPosted:Mon Jun 05, 2017 8:41 am
by Petr_Valenta
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

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

PostPosted:Thu Jun 08, 2017 6:24 am
by jllort
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 ).

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

PostPosted:Wed Jun 14, 2017 11:32 am
by Petr_Valenta
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.

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

PostPosted:Wed Jun 14, 2017 11:33 am
by Petr_Valenta
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.

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

PostPosted:Fri Jun 16, 2017 8:02 am
by jllort
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