Savoir si un utilisateur fait parti des acteurs de mon processus

1
0
-1

Bonjour,
actuellement je suis entrain de créer une application dans LiveApplication de Bonita. (LiveDriveCar)
Voici l'organisation de mon app:
home
-- Driveboard
--------- demande de location
--------- validation demande
sur la page DriveBoard , j'affiche un recap sous forme de tableau de toutes les demandes de location.
j'ai deux bouton qui s'affiche en fonction du type d'acteur:
si l'acteur est un demandeur : il aura un link button (+ nouvelle demande de location)
mais si l'acteur est un valideur : il aura un link bouton (+ valider les demandes encours) qui va le rediriger vers la liste de toutes demandes en attentats de validation que je pourrais avoir avec API : ../API/bpm/humanTask?c=10&p=0&f=state=ready&f=user_id={{session.user_id}}

Ma question comment je fais pour afficher un bouton ou cacher un container en fonction de l'appartenance de l'utilisateur a un groupe d'acteur du processus

Merci d'avance

2 answers

1
0
-1
This one is the BEST answer!

Thanks j'ai réussi en définissant le customUserInfo et après j'effectue des tests sur la valeur de retour

1
0
-1

Forgive me, and while I understand you want to keep things simple, but BPM processes should never be mixed.

For example, Apply, and Validate.

The best way to do what you want to do is Duplicate the process in full (forms etc.) and then develop each accordingly.

Otherwise the first thing you will find will be that you want to modify Apply but you break
Validate etc.

By doing this in this example, you then don't have to worry about the actor and just assign the right one.

Regards
Seán

PS: If this reply answers your question, please mark a resolved.

Comments

Submitted by Sean McP on Mon, 03/21/2016 - 19:15

OK....that's one way of doing it...

regards

Notifications