Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By njhajhajha
#814040
Hey i am new to process maker .....
I have SQL query in trigger which returns user_UID ,whome i want to assign new task.
I have placed ths trigger in before assignment ,but it returns "Task doesn't have a valid user in variable branchuser or this variable doesn't exist. "

Need help!!!
User avatar
By amosbatto
#814048
If you want the currently logged-in user:
Code: Select all
@@nextAssignedUser = @@USER_LOGGED; 
If you want the ID of a particular user:
Code: Select all
$username = 'johndoe';
$sql = "SELECT USR_UID FROM USERS WHERE USR_USERNAME='$username'";
$result = executeQuery($sql);
if (count($result) > 0) {
   @@nextAssignedUser = $result[1]['USR_UID'];
}
else {
   throw new Exception("Unable to find user '$username' in USERS table");
}
Where the variable for Value Based Assignment is @@nextAssignedUser .

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]