IBM Business Process Manager


Select coach element, BPMv8


Hi all,
At the moment I'm in the process of converting some forms from v7 to v8 and I've got a minor annoyance to deal with: in our tables we store only the value of a NameValuePair for select elements. The select dropdowns in v7 only take a string binding and they will correctly set the right display value on load. In v8, you bind the selected value to a NVP, this isn't a problem.
But when you read the data back from the table, you have to manually set the NVP data post execute, because AFAIK you can't bind SQL Execute output to nested complex objects (say you have a country dropdown for a Contact Complex Object).
Following from that, our old data objects only store the value of the pair in a String (v7 select only needs the value). Would this mean I would have to:
change the SQL to join the value with the name,
add a new string var into the complex object to store the name, and
manually store name and value into the NVP post-execute?
Phew. After realising all that, I tried to just keep the old SQL output, and bind just the value to the NVP (almost like in v7) meaning .name is a zero length string, hoping that the select coachview is smart enough to set the correct select display value based from the input value.
But no.
Unless someone has a better idea, I'm going to use a service that does the value->name lookup and set all that (ugh, this is going to be messy).
or
Concatenate the value and name together in the SQL query and split it after execute.
Someone stop me before it's too late.
So if I'm reading this correctly, here is the problem -
You have leveraged the SQL connectors to generate a list of "Business Objects" from a SQL query.
In the UI, one of the members of your Business Object is a drop down list.
Due to the way drop downs were done in the default coach view, you have to bind drop down to a complex (name value pair) type, not the string you used before.
You want to make the least changes that allow you to use 8.0.1 coach views but retain the object creation from SQL
Assuming that is all correct, I would look at creating your own drop down coach view that will allow you to bind to the data type you want and use that in your UI rather than the OOTB view IBM is supplying. That seems like the simplest solution to this issue.
Andrew Paier | Director | BP3 Global, Inc.
BP3 Global's Website | Twitter | Linkedin | Google+ | Blogs
AndrewPaier
2700040K2Q
‏2013-06-03T19:42:34Z
So if I'm reading this correctly, here is the problem -
You have leveraged the SQL connectors to generate a list of "Business Objects" from a SQL query.
In the UI, one of the members of your Business Object is a drop down list.
Due to the way drop downs were done in the default coach view, you have to bind drop down to a complex (name value pair) type, not the string you used before.
You want to make the least changes that allow you to use 8.0.1 coach views but retain the object creation from SQL
Assuming that is all correct, I would look at creating your own drop down coach view that will allow you to bind to the data type you want and use that in your UI rather than the OOTB view IBM is supplying. That seems like the simplest solution to this issue.
Andrew Paier | Director | BP3 Global, Inc.
BP3 Global's Website | Twitter | Linkedin | Google+ | Blogs
More...
Firstly, thanks for replying, and apologies if the post was hard to read or a little, snarky (not at you, of course).
Secondly, I was afraid you were going to say that. I had considered it, but initially thought that it would be too much work (since the default select CV is quite a large codebase, relatively). I will give it another look, maybe copy the existing coach and modify it to check to see if only the value is set, and check the bound NVP[] list for a 'name' of that value.
In the meantime, I did the latter of my two own suggestions, a little involved, but workable.
Now that I write this, I'm going to try and modify that select CV.
Thanks.

Related Links

role binding
One Process, Many Countries, Thoughts On Data Segregation?
Manage the Visibility of Tasks in the Team Performance Dashboard
Error While Installing IBM BPM 8.5.5 Process Designer
RFE Shameless Plug - Coloured Notes
Testing framework for BPM project
How to get LDAP user attributes in IBM BPM 8.5?
Binding Sub CoachViews
Run/Execute task
How to add dojo.ready in Custom HTML
Validate the insatnce id
Start Process via REST API with TWDate as input
Rich text format
Link to Other Page using JS
Coach View Modify Control Type at Runtime
Unabel to see Process Server in Process Center Servers tab .

Categories

DW
BigData
PowerVM
Enterprise Content Man...
Application Performanc...
Developer Central
COBOL Cafe
IBM Content Manager En...
Content Analytics
IBM Kenexa LCMS Premier
IBM Infrastructure Sec...
Security Access Manage...
IBM Security Intellige...
eMessage8
Detect
IBM SmartCloud Applica...
IBM TRIRIGA Applicatio...
Environmental and Ener...
Jazz for Service Manag...
Software Asset Management
Web Reports and Custom...
iPhone Mobile Apps
Cast Iron Documentation
IBM SPSS Modeler
Getting Started with I...
WebSphere ILOG Busines...
Industry
Cognos Express
AIX и UNIX
Functional and GUI Tes...
Rational Method Compos...
Системы хранения данны...
websphere
university
websphere
Mainframe Brasil
Wholesale
Government
Electronics
Banking
IBM i
Eserver
IBM developer solutions
Wireless
Linux
InfoSphere Master Data...
Optim Test Data Fabric...
DB2 for Linux, UNIX, a...
IBM InfoSphere BigInsi...
InfoSphere Information...
MS Exchange Recovery t...
IBM Forms Experience B...
For All Type Post
WAPL and SOE - Workloa...
IBM Integration Design...
CICS Explorer
Collecting Windows Eve...
DSM Extensions, Custom...
Documentation
QRadar Incident Forens...
QRadar Vulnerability M...
Mobile Store Channel
Service / Adapter Conf...
Reporting
Performance / Scaling
Patterns / Techniques ...
Managed File Transfer
Bottom of the BB
Connect:Direct (Educat...
Applications Framework
Connect:Direct
Selling System SDK
C3 Configurator
C3 Analyzer Q&A
C3 Analyzer Customization
Adoption Rates
Error Messages
Comergent Courses
C3 Partner.com/C3 Stor...
Release 7 Chit-Chat
Integration with other...
Reverse Logistics
Receipts
Security
IDE Tools
Console Framework (HTM...
WebLogic - JMS
DB2
Moderator Collaboration
SAP
HeapRoots
Visual Performance Ana...
Storage Management
System Automation for ...
IBM Tivoli Enablement ...
IBM i: iDoctor for IBM...
PowerHA (Formerly know...
Power Architecture forum
Lotus Web Content Mana...
General Parallel File ...
XQuery and XPath forum

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile