cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow récupérer son ID

livier
Confirmed Champ
Confirmed Champ

Bonjour,

Je cherche un moyen de récupérer l'id d'une instance du workflow.
J'ai cherché un peu sur les forums et sur le net mais pour l'instant je ne trouve rien de probant.

D'avance merci

2 REPLIES 2

oounoughi
Star Contributor
Star Contributor

Depuis une tache wf vous pouvez récupérer l'id de l'instance :

var workflowId = task.path.instance.id

O.

livier
Confirmed Champ
Confirmed Champ

Merci pour votre réponse.
J'ai trouvé ce code qui fonctionne également :

var workflowID = execution.getProcessInstance().getId()