+1 vote
1.3k 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 611 views
0 votes
1 answer 420 views
+1 vote
1 answer 433 views
+1 vote
0 answers 413 views
+1 vote
2 answers 4.5k views
+1 vote
8 answers 5.9k views
asked Jun 11, 2018 in BPD by anonymous
0 votes
1 answer 1.4k views
0 votes
1 answer 467 views
0 votes
0 answers 184 views
asked Mar 30, 2020 in BPD by Anil Singh (16.3k points)
0 votes
1 answer 1.2k views

634 questions

495 answers

97 comments

2.7k 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
...