Workflow instance variables!

Avatar

Avatar

robertw937098

Avatar

robertw937098

robertw937098

27-09-2018

Hi,

Using an enrichment, I'm creating a custom instance variable in a workflow. As shown below.

1580754_pastedImage_1.png

However, the issue is that this field defaults to a string. I need it as a number. How can I change the data type to be a number?

Thanks,

Rob

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

david_garcia1

MVP

Avatar

david_garcia1

MVP

david_garcia1
MVP

27-09-2018

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

Answers (2)

Answers (2)

Avatar

Avatar

david_garcia1

MVP

Avatar

david_garcia1

MVP

david_garcia1
MVP

16-09-2019

Sorry just thought I should Update as I noticed an error.

ToInteger($(instance/vars/@difference)) correct

$(ToInteger(instance/vars/@difference)) wrong

Avatar

Avatar

robertw937098

Avatar

robertw937098

robertw937098

28-09-2018

Thank you!