Assign task when il click on button in application

1
+1
-1

Dans le portail bonitasoft dès qu'un utilisateur click sur faire or doit la tâche lui est automatiquement attribué. J'aimerais avoir la même fonction dans une live application avec un lien ou un bout ton

Merci

Comments

Submitted by DrakunDry on Mon, 03/21/2016 - 20:01

Important: A task is not automatically assigned to the user who accesses the task form. If a user is using Bonita BPM Portal, the assignment is automatic. However, if a user is accessing a form directly from an application, there must first be a REST API call to assign the task to the user. Otherwise, the user will not be able to execute the task.

3 answers

1
+1
-1
This one is the BEST answer!

You can checkout the "redirect next task widget" custom widget that actually include the logic to assign a task to current user. It should be not to difficult to extract only the useful part to create a widget to assign a task before redirecting to the form.

Comments

Submitted by DrakunDry on Tue, 03/22/2016 - 16:20

j'ai ma liste de tache et chaque fois que je choisi une tache un bouton apparait.
Quand le current user clique sur le bouton la tache lui automatiquement assigner avant de le rediriger vers le formulaire qui lui permet d'executer la tache. j'ai constaté qu'en live application si le current user accede au formulaire de validation d'une demande sans que cette dernière ne lui soit assigné, il ne pourra pas le traiter.
En faisant reference a cette notification sur le site de bonita :
Important: A task is not automatically assigned to the user who accesses the task form. If a user is using Bonita BPM Portal, the assignment is automatic. However, if a user is accessing a form directly from an application, there must first be a REST API call to assign the task to the user. Otherwise, the user will not be able to execute the task.

Submitted by antoine.mottier on Wed, 03/23/2016 - 10:51

Effectivement il faut que l'utilisateur s'assigne la tâche avant de pouvoir soumettre le formulaire associé.

Il est possible de créer un widget personnalisé pour assigner la page et ensuite effectuer la redirection vers le formulaire. Une autre option est de faire un widget personnalisé qui assigne la tâche et ensuite la soumet.

Pour mettre en place ce type de widget je vous recommande de prendre comme exemple le widget : "redirect next task widget".

Submitted by DrakunDry on Wed, 03/23/2016 - 13:12

Merci bien pour les échanges. Avec le redirect next task j'ai pu réaliser ce que je voulais

1
+1
-1

j'ai ma liste de tache et chaque fois que je choisi une tache un bouton apparait.
Quand le current user clique sur le bouton la tache lui automatiquement assigner avant de le rediriger vers le formulaire qui lui permet d'executer la tache. j'ai constaté qu'en live application si le current user accede au formulaire de validation d'une demande sans que cette dernière ne lui soit assigné, il ne pourra pas le traiter.
En faisant reference a cette notification sur le site de bonita :
Important: A task is not automatically assigned to the user who accesses the task form. If a user is using Bonita BPM Portal, the assignment is automatic. However, if a user is accessing a form directly from an application, there must first be a REST API call to assign the task to the user. Otherwise, the user will not be able to execute the task.

1
0
-1

Bonjour ,

je suis débutant dans cet outil et je veux bien savoir comment on peut assigner la tache?

Merci d'avance pour votre réponse.

Cordialement.

Notifications