+1 vote
621 views
in Javascript API by (16.2k 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 353 views
0 votes
1 answer 206 views
+1 vote
1 answer 238 views
+1 vote
0 answers 111 views
+1 vote
2 answers 2.7k views
+1 vote
8 answers 2.9k views
asked Jun 11, 2018 in BPD by anonymous
0 votes
1 answer 489 views
0 votes
1 answer 268 views
0 votes
0 answers 52 views
asked Mar 30, 2020 in BPD by Anil Singh (16.2k points)
0 votes
1 answer 500 views

609 questions

493 answers

91 comments

1.9k users

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