Get Current Task ID

248 views
Skip to first unread message

jish...@dikshatech.com

unread,
Apr 22, 2019, 6:55:20 AM4/22/19
to jBPM Usage
Hi All,

Is there a way we can get the current Task ID from the processInstanceID ?

We managed to get the processInstanceID using kcontext.getProcessInstance().getId();

Please help 

Thanks

Maciej Swiderski

unread,
Apr 23, 2019, 5:01:18 AM4/23/19
to jish...@dikshatech.com, jBPM Usage
There is no such thing as current task id as process instance can have many tasks active at the same time. You can use taskService/userTaskService to find tasks by process instance id

Maciej

Information included in this email is reserved to named addressee’s eyes only. You may not share this message or any of its attachments to anyone. Please note that as the recipient, it is your responsibility to check the email for malicious software. The opinions disclosed by the sender do not have to reflect those of the company, therefore the company refuses to take any liability for the damage caused by the content of this email.

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/caf1fbb8-3edd-4c80-abc7-976b606f75fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paulo E. Menon

unread,
Apr 25, 2019, 5:49:20 PM4/25/19
to Maciej Swiderski, jish...@dikshatech.com, jBPM Usage
Hi Jishnu,

Do you mean to get a task id within the process ? I'm asking that because you are using kcontext to get process instance id which I believe it's within the process.

Task id are not visible in the process as they are task variables. If I'm not wrong Maciej already explained this in another discussion.

Why you will need to do that ? 

Cheers
P

Jishnu R

unread,
May 28, 2019, 7:48:39 AM5/28/19
to Paulo E. Menon, Maciej Swiderski, jBPM Usage
Hi Maciej & Paulo,
 
 Thanks for your suggestions.
 
 Our intention is to pass ProcessInstanceID and TaskID to a hyperlink URL. On click of the hyperlink, user will be redirected to that particular Request Form page.
 
 Please advice the best way to achieve this.
 
 Regards
 Jishnu R
Reply all
Reply to author
Forward
0 new messages