Answered

Multiple subprocess performers assignation

Hi, i have a question about the multiple subprocesses.

I have a process A and in the form i fill a grid with N rows, so the multiple subprocess can create N processes of the process B.

This works ok , but i need to link every created subprocess B with the user that is chosen in each row of the grid (he is being chosen from a combo with all the users from the WFUSER table).

For example, i would like to start a process A and in the grid to create 3 rows:

- In row 1 i have chosen that the User 1 will do something, In row 2 the User 2 and in row 3 the User 3.

So 3 processes of the multiple subprocess B will be created and each of the Users 1,2,3 should get their case in the pending list.

I haven't found a way in wiki on how to do this, to link the performer from the table with the subprocess.

Is there a way so this can be solved , through an expression or something else.

Thank you

Best Answer
photo

Dear Stole,

In order to assign performers to your subprocess, you need an expression that uses data-binding to associate the userID set in the grid to the assignment rule:

75678581

In order for this to make sense, your multiple subprocess configuration requires that the "Related Entity" (http://wiki.Bizagi.com/en/index.php?title=Multiple_subprocesses#Related_Entity_or_Group_in_Collection) attribute is set as shown:

54619192

The mentioned example used the following data model for Process A:

93054490

This way, Process B has its relation to the collection entity to access its corresponding WFUser:

51143862

Best regards,

Bizagi BPM Suite Support.

Comments (8)

photo
0

Dear Stole,

In order to assign performers to your subprocess, you need an expression that uses data-binding to associate the userID set in the grid to the assignment rule:

75678581

In order for this to make sense, your multiple subprocess configuration requires that the "Related Entity" (http://wiki.Bizagi.com/en/index.php?title=Multiple_subprocesses#Related_Entity_or_Group_in_Collection) attribute is set as shown:

54619192

The mentioned example used the following data model for Process A:

93054490

This way, Process B has its relation to the collection entity to access its corresponding WFUser:

51143862

Best regards,

Bizagi BPM Suite Support.

photo
0

Thank you for your quick response, i followed your example and was able to create the subprocess as i wanted.

Once again, thanks.

My best regards

photo
0

Hi,

I have the same problem. Could you post the expression used to assign the performs to the subprocess in this case?

Ty

photo
0

Dear Giovani,

Work allocation is the fifth step of the Process automation Wizard where Performers are defined for each Activity of your Process/Sub-Process. Performers are the users that have the qualities to be assigned to activities. Each Task created for end user interaction requires definition that will allow Bizagi to allocate the correct users within your organization. Bizagi automatically evaluates the allocation rules defined for each Task and selects one or more users that meet the given conditions from the user's list. Only these users will have access to work on the Activity allocated to them.

Please follow these articles for further information:

Regards

photo
1

Hello Juan,

I have the same problem as Stole. Can you post the image files that Luis Emilio Ayazo Cardona posted?

How can I associate the performers to the rows of my collection??

Best regards,

Francisco Araújo

photo
1

Dear Francisco,

Expressions in allocation rules are usually needed when you need to evaluate complex conditions and select some user that comply conditions given in said expression.

To use expressions select the User property User id and the Expression option.

The expression created should return an array of ids, of the users that comply with the condition needed. Those users ids will be allocated.

hmfile_hash_e1e30f74

Using the same idea, you can add the result to a collection. In order to create items (records) in a collection using a business rule, Bizagi offers a function called newCollectionItem.

Visualize your collection as a table. Creating a new item is comparable to adding a new row to a table. First you need to create the new row and then set the desired values for each column.

The new record (row) is created using the newCollectionItem function. This function is available in the Functions list of theCollections category.

addrelation6

For further information:

Regards

photo
1

Hello Juan,

In an ordering process, I have a collection where I save the

orders and the id's of the employees that have to approve.

I am using

a multiple subprocess.

How do I

define the performers so that the information of the approval or disapproval of

the collaborators is written in the line of the collection defined in the

request?

Example:

Collection values:

Request:

Order |

Colaborator ID | Approved? | Many thinks

Order 1 | 12345 | null | null

Order 2 | 32156 | null | null

After approval or disapproval:

Order |

Colaborator ID | Approved? | Many thinks

Order 1 | 12345 | yes | dgkfghkfgkfghk

Order 2 | 32156 | no | dgkdgkwrywrsfgh

Thanks,

Emanuel Delgado.