How to display task data in the table format?

cancel
Showing results for 
Search instead for 
Did you mean: 
amruta_w
Senior Member

How to display task data in the table format?

Hello,

I am referring the link https://community.alfresco.com/community/bpm/blog/2017/05/01/form-stencil-examples-alfresco-process-... to display process data (Grid/Table example)

I have a case as follows :
I have created the two process namely "process 1" and "process 2". Process 1 contains two task and Process 2 contains three task.
In the process 2 -> task 2, i want to display the process 1 of both task data. The process 1 runs N times by the user and the process 2 should get updated each time. How can i achieve this?

Kindly anyone help me out in this.

Here I have attached my process.

Thanks
Amruta Wandakar

16 Replies
bassam_al-saror
Alfresco Employee

Re: How to display task data in the table format?

Whats the relation between Process 1 and Process 2? 

amruta_w
Senior Member

Re: How to display task data in the table format?

Process 1 is sub process of process 2

bassam_al-saror
Alfresco Employee

Re: How to display task data in the table format?

If process 2 is a subprocess of process 1 then all process 1's variables/fields are available for process 2. 

When you say

Amruta Wandakar wrote:

The process 1 runs N times by the user and the process 2 should get updated each time. How can i achieve this?

I assume that for each process 1 there is an separate process 2 instance. Is that correct?

amruta_w
Senior Member

Re: How to display task data in the table format?

In "Process 2" i am calling the "Process 1" using call activity sub process.

amruta_w
Senior Member

Re: How to display task data in the table format?

Bassam Al-Sarori‌ I have re -attached the process. Kindly help me out in this.

bassam_al-saror
Alfresco Employee

Re: How to display task data in the table format?

Data between the two processes can be passed using the in/out parameters other than that there is no way to display data in called process from the caller process.
Maybe you need to consider using collapsed subprocess instead.

amruta_w
Senior Member

Re: How to display task data in the table format?

Bassam Al-Sarori‌, I have modified the process as per your comments and attached here. Kindly help me out for this query.

bassam_al-saror
Alfresco Employee

Re: How to display task data in the table format?

You might need a step before going to back to main task. For example a script task that will add the data from the subprocess to a list. That list can then be used to display data in the main task.

Here is an example of how the process can look like.

amruta_w
Senior Member

Re: How to display task data in the table format?

Bassam Al-Sarori‌ Thank you for the reply. I'm confused that how can i get the process 1 data in script task? is there any documentation for the script task which suits  my scenario.