cancel
Showing results for 
Search instead for 
Did you mean: 

Gateway either selection

josh3006
Champ in-the-making
Champ in-the-making
Hi,

I have a Leave workflow which using gateway.
In case this 'Supervisor' is not around, 'Watcher' will approve the leave.

My question here, how can I make the gateway knows either one of them (Supervisor or Watcher) will approve the leave & the note should goes to 'Approver'

Workflow Diagram : http://picpaste.com/LeaveWorkflow-JSVM9jKs.jpg

Please advice
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
You could add a bean/service to the activiti-context (see forum and user guide for 'beans') that contains the logic that determines what person to choose. Than, in your gateway, use this kind of expression:


${leaveService.isPersonOnLeave(assignee)}