Is it possible to use regex in Switch Activity Key?

Hi there,

I have process which registers new employees in HR system.

I have string which contains job title. There is 15 possible job titles. I need to put number based on the job title to HR system. One number is associated with more job titles “doing the same thing”.

My idea was to use regex in Switch activity to assign same number to job title.
For example I have titles “Sale manager, Sale representative, Sales personel” so for all titles containing words “sale, sales” I would output same number.

Is it possible? I didn’t find a way how to do it because I didn’t find way how to make key in Switch Activity dynamic.

Any suggestions? :slight_smile:

Yes its possible.

in the condition you can mention regex and in the case mention the position it works

Cheers @vendetta

I didn’t really get what you mean @Shriharsha_H_N .

Can you explain with bit more detail or provide example? :slight_smile:

Could you share input samples?