How to get the assigned in Embedded user task form

Hi,

i am beginner in camunda
i try to get "assigned " to use in form as variable by script to use it to make jeson variable with name like assigneeRR e.g : malekRR :

 <script cam-script type="text/form-script">
    var assig = $scope.assignee;
    var products = $scope.products = [];
    camForm.variableManager.createVariable({
        name: assig+'RR' ,
        type: 'json',
        value: products,
      });
  </script>

how i can do this ??

1 Like

Hey @Malek_D,

You can use the TaskService, get the current task, then get the assignee from it. You can see how to do that here.

Cheers,
Nikola