Transmit enum form field type as long variable to an external worker

Hi,

I am new to Camunda and I really need your help.

I am using C++ in Visual Studio as an external worker and in the Camunda Modeler I would like to create a form field with type ‘enum’ like this:

What is the easiest way to receive for instance the value 20 in a long variable in C++? Could you write a code snippet for the “pplx task” in C++ for me?

Thank you very much in advance,
Johnny

Create a input mapping on your external task activity that takes the selected value/variable from the enum and coverts it into a Local Variable of type long. You can do this with a script such as groovy or javascript. Your external task would then grab the local variable rather than the String that was saved by the enum selection