cancel
Showing results for 
Search instead for 
Did you mean: 

Eclipe - validation of a valor

texano1
Champ in-the-making
Champ in-the-making
Hello Community,


My diagram in Activiti Designer as a decision point where it check if the inputed value (numbers) is shorter or bigger than another fix value. When i use a int number like 10000 or 23552 it works perfectly but when i use a decimal number like 3241,76 the process crashes when validating the decision. I'm currently using "string" in field type witch looks like doesn't not include decimal numbers.. What field type i need to use to make this work?

One of the conditions is:

${reg_ValorNegocioNum <= 50000 && reg_RentabilidadeBrutaPercent >= 30} 
where reg_ValorNegocioNum and  reg_RentabilidadeBrutaPercent are formated as string.

I tried types like decimal and double but when i upload the process to Activiti explorer it says that double and decimal are invalid.

Can someone give me a hint?


Thanks,
Texano
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
Double values should work just fine. Can you post how you add them into the process?

texano1
Champ in-the-making
Champ in-the-making
Hey jbarrez,

Thanks for your help. I add them in process using eclipse.
http://s10.postimg.org/5od3ucdbt/07_02_2014_15_10_33.png

The error i got when uploading the process is: http://s28.postimg.org/81iwnzp99/07_02_2014_15_21_32.png


Thanks,
Texano

frederikherema1
Star Contributor
Star Contributor
Double types are not supported for the moment. You can use a 'long' type as a workaround and multiply by 100 (or whatever) to shift the comma.

In 5.15, the double type will be supported.

Hey frederikheremans,

Thanks for your help.

Can you show me how to do that part of multiplying for 100 ? I'm new in this area.

Thanks,
Texano

jbarrez
Star Contributor
Star Contributor
That's just a coding trick to work around doubles: think that there is no comma, and store it as a long.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.