- Thu Apr 23, 2015 5:42 pm
#782822
Hi all, the case is as follows:
I have a workflow with parallel tasks (attachment image).
The initial task has a grid which the user searches for N directors, each row is a director (attachment image).
The idea is that in the parallel tasks are being assigned the first 4 directors selected in the grid. Ie depending on the value of the grid, these managers will be assigned to each task.
What I've done is create a trigger for each task in parallel, which run Before
With the following code:
Please, I need guidance to dynamically assign users to tasks in parallel ...
regards
I have a workflow with parallel tasks (attachment image).
The initial task has a grid which the user searches for N directors, each row is a director (attachment image).
The idea is that in the parallel tasks are being assigned the first 4 directors selected in the grid. Ie depending on the value of the grid, these managers will be assigned to each task.
What I've done is create a trigger for each task in parallel, which run Before
With the following code:
Code: Select all
I do a trigger different for each parallel task and only change the row number in the line:
#allocation of the first row of the grid a variable containing the name
$nombre_director1 = @=grdDirectores['1']['txtDirector'];
#sql query to extract the UUID of charge from its name
$query = "SELECT USR_UID FROM USERS
WHERE concat(USR_FIRSTNAME ,' ', USR_LASTNAME ) = '".$nombre_director1."'";
$result = executeQuery($query);
$id_director = $result[1]['USR_UID'];
#UID assignment to the variable that contains the user who is assigned to task
@@SYS_NEXT_USER_TO_BE_ASSIGNED = $id_director;
Code: Select all
But when you run the WF, and move to the parallel tasks, i get an error that says the tasks do not have assigned users.$nombre_director1 = @=grdDirectores['1']['txtDirector'];
Please, I need guidance to dynamically assign users to tasks in parallel ...
regards
Attachments
Process and DynaForm
mix.jpg (77.52 KiB) Viewed 4053 times
mix.jpg (77.52 KiB) Viewed 4053 times