cancel
Showing results for 
Search instead for 
Did you mean: 

use the enum value for exclusive Gateway

whasabi
Champ in-the-making
Champ in-the-making
Hello,

is it possible to have one enum with 4 choices and then have an exclusive Gateway and depending on the picked enum, another next user task will be shown (using the Activiti Explorer)

Thanks
2 REPLIES 2

hari
Star Contributor
Star Contributor
Hi,

Activiti uses UEL for expression resolving. Hence you can have multiple options in your enum and have flow conditions accordingly.
Example: Your enum mySuit has {hearts, spades, diamonds, clubs} and to check for its value, you can use ${mySuit == 'hearts'} or ${mySuit =='spades'} etc.
Refer to this link for more information. http://docs.oracle.com/javaee/6/tutorial/doc/bnahu.html

whasabi
Champ in-the-making
Champ in-the-making
Thank you Smiley Happy it worked