+1 vote
1.6k views
in Javascript API by (16.3k points)

1 Answer

0 votes
by (540 points)

You should always use the valueAt when getting data from an EPV.

tw.local.myString = tw.epv.myString.valueAt(new TWDate())

or

tw.local.myInteger = Number(tw.epv.myEpv.myInteger.valueAt(new TWDate())

by (700 points)
when we define an EPV, internally it will be treated as an object and it gets persisted in the process DB.  Wherever EPV is getting utilized and the corresponding value that you are expecting requires a typecasting.

tw.local.someString = ""+tw.epv.definedEPV.variabledefinedInEPV.

Related questions

0 votes
1 answer 743 views
0 votes
1 answer 547 views
+1 vote
1 answer 564 views
+1 vote
0 answers 711 views
0 votes
1 answer 1.2k views
+1 vote
2 answers 5.0k views
+1 vote
8 answers 6.9k views
asked Jun 11, 2018 in BPD by anonymous
0 votes
1 answer 1.9k views
0 votes
1 answer 598 views
0 votes
0 answers 263 views
asked Mar 30, 2020 in BPD by Anil Singh (16.3k points)
0 votes
1 answer 1.5k views

635 questions

495 answers

98 comments

3.0k users

Join BPM Community Discord Channel

Welcome to BPM Tips Q&A, Community wiki/forum where you can ask questions and receive answers from other IBM BPM experts and members of the community. Users with 2000 points will automatically be promoted to expert level.
Created by Dosvak LLC
Our Youtube Channel
...