Skip to main content
Level 2
Sep 27, 2018 2:24 PM UTC
Solved

Workflow instance variables!

Hi,

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

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
david--garcia
david--garciaAccepted solution
Level 10
Sep 27, 2018 2:43 PM UTC

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

3 replies

david--garcia
Level 10
Sep 16, 2019 2:33 PM UTC

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

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

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

Translate
Level 2
Sep 28, 2018 10:23 AM UTC

Thank you!

Translate
david--garcia
david--garciaAccepted solution
Level 10
Sep 27, 2018 2:43 PM UTC

You need to convert it using ToInteger()

Try

or in the next activity

ToInteger(@difference)

Translate