cancel
Showing results for 
Search instead for 
Did you mean: 

how to display Process instance Id on task screen

praveenasurapan
Champ in-the-making
Champ in-the-making
I am trying to find the process instance ID of a task, so that I know, I am editing the correct task assigned to a user group.

We have a task under a process instance that needs to be marked complete. I can't see to connect a task to a process instance Id on the task screen. Is there any easy way to have this displayed on task screen in activiti-explorer?

Please let me know.
9 REPLIES 9

yvoswillens
Champ in-the-making
Champ in-the-making
Hi,

I'm not quite sure what you're trying to achieve.
On the Activiti Explorer Task page a link to the process is presented. ( http://activiti.org/screenshots.html#images/screenshots/activiti-explorer-tasks.png )
Is that not what you're looking for?

Regards,

Yvo

praveenasurapan
Champ in-the-making
Champ in-the-making
Thanks for your response

In the screenshot you attached, the part where it says "Part of Process: Vacation Request', is there a way, I can display process instance ID. Please let me know.

Thanks

sankalpn
Champ in-the-making
Champ in-the-making
If you have JAVA classes the simplest thing I can think of is:

In one of your earlier JAVA classes:

public void execute(DelegateExecution exec) {
    ———
    exec.setVariable("procInstId", exec.getProcessInstanceId());
    ———
}

Later, in the user task you can have a non-writeable form field saying Process Instance Id with default value ${procInstId}

praveenasurapan
Champ in-the-making
Champ in-the-making
Thanks Sankalp. Currently I am just deploying the activiti-explorer.war that came with 5.16.3 download

Can you please let me know where can I download the code base for Activiti-explorer for 5.16.3 version?

sankalpn
Champ in-the-making
Champ in-the-making
https://github.com/Activiti/

Don't know if it has per distribution code snapshots. But, my solution works with just the war. What I suggested needs to be done in a service task.

praveenasurapan
Champ in-the-making
Champ in-the-making
Thanks Sankalp.

If I understand correct, I have to modify my workflow to include the service task you mentioned. unfortunately I can't change my workflow. Is there something we can do in the activiti-explorer code base for process instance ID to show up on task screen.

jbarrez
Star Contributor
Star Contributor
The source is open, so you can change it anyway you want and create a new war file yourself.

praveenasurapan
Champ in-the-making
Champ in-the-making
Can you please let me know how to download a zip version of the code for Activiti-explorer

jbarrez
Star Contributor
Star Contributor
Didn't you see the big 'Download Zip' button on our source code page on github?