IBM Business Process Manager


A good example to convert JSON into twObject


Is there a easier way to convert JSON string into twObject?
I am using 6.2
Thxs
Victor
It is hard to say since you didn't tell us what your current approach is. I in 8.0.1 I just made a complex type with the members "firstName" and "lastName". I then created the following and assigned it to a string value -
({
"firstName" : "Bob",
"lastName" : "Smith"
})
and then in a JS block I did-
tw.local.myVar = eval(tw.local.myString);
And it worked. What are you doing. Have you tried the above? Note that the "eval" call is subject to injection attacks and it is recommended that you use one of the JSON parsers to avoid that danger.
Andrew Paier | Director | BP3 Global, Inc.
BP3 Global's Website | Twitter | Linkedin | Google+ | Blogs

Related Links

Getting error while running service / task in BPM 7.5
Help: WS Security Implementation IBM BPM 8.0.1
Validation On Legacy Document Attach Control
TWSearch not working for migrated instances
Help with Selecting value from DatePicker in dojo
Duplicate Entries in Process Designer
Process Portal Collaberation Feature Not Working
CV - share data in coachview behaviours
CWLLG0371W: There is no script content.
Building a Mobile App in IBM BPM 8.5
IBM BPM on SQL Server 2008r2 on Windows 2008r2
US Phone CV with Validation
No vertical scroll even if my coach height exceeds screen
deployed processes can\'t be invoked after system detects inacitivy for a certain amount period
IBM BPM 8.0.1 and Admin console Cache
How to Call REST Api through Process Designer?

Categories

DW
Cloud management integ...
Weblogs
Information Management
i2 Software
Linux on Power Community
IBM FileNet Image Manager
IBM Kenexa Talent Mana...
IBM Kenexa Participate
Netcool/Impact Future ...
Marketing Platform
NetInsight Enterprise
PredictiveInsight
IBM SmartCloud Applica...
Jazz for Service Manag...
Deployment and Configu...
iPhone Mobile Apps
Managed File Transfer
IBM SPSS Modeler
General Statistical Qu...
EGL Cafe
WebSphere ILOG Busines...
ERP
Cognos BI 10
Cognos Mobile 10
SOA и Web-сервисы
Rational
Rational RequisitePro ...
Enterprise Change Mana...
linux
Insurance
Government
IBM LanguageWare Resou...
AIX and UNIX
Information Architectu...
.NET Development with ...
IBM DB2 Recovery Exper...
IBM InfoSphere BigInsi...
IBM Content Integrator
Blockchain Technology
The CDC (Change Data C...
IBM PureData-Enzee Com...
WAPL and SOE - Workloa...
WebSphere Message Broker
WebSphere Commerce
CICS Transaction Serve...
IBM Security Identity ...
News & Announcements
Right-click Integrations
QRadar Risk Manager
Gentran Integration Su...
Gentran Server for Win...
Warehouse Management
Gentran Integration Su...
Connect:Express Windows
Connect:Enterprise UNIX
Pricing, Configuration...
Selling System Release...
C3 Analyzer Customization
The Selling System Use...
Comergent Security
Commerce/Order Management
Outbound planning
Logistics Management
Distributed Order Mana...
Extensibility
IBM ILOG Elixir Previe...
Constraint Programming
IBM ILOG BRMS Beta Pro...
Rules for .NET
BRMS Trial Support
OLAP & Pivot Charts
C++ Visualization Prod...
Decision Validation Se...
Business Rules Best Pr...
Higher Education
Форум IBM developerWor...
1С:Предприятие на DB2
Information Server - J...
Tivoli Workload Automa...
IBM Tivoli Network Man...
IBM Tivoli Asset Disco...
IBM Workload Automatio...
IBM i: Backup/Recovery
IBM i Access for Linux
AIX Forum for developers
IBM System Storage
IBM Flex Systems
IBM WebSphere Applicat...
Cell Broadband Engine ...
Working XML forum
Atom and RSS forum
Java filter
Web Services Technical
Linux for Power Archit...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile