Hi Yannik,
this should work as expected with the current BAW release (20.0.0.2).
I just validated it in my demo environment. When you assign a choice list to a case property and use this case property in a BPMN based case activity, it honours the choice list that has been defined in Case Builder.
Actually, when you drag the case variable which has a choice list assigned to the coach canvas, it automatically uses the "Single Select" coach view and the static choice list is defined automatically leveraging the information from Case Builder.
You will, however, have to delete and re-add the property in your coach once you change the choice list in Case Builder as is seems that it does not sync this information automatically.
Hope this helps!
Best regards
------------------------------
Michael Kirchner
Leading Technical Specialist - Digital Business Automation
IBM Technology
Germany
------------------------------
Original Message:
Sent: Wed June 09, 2021 06:13 AM
From: Yannick Martin
Subject: How to use ChoiceList coming from Case Manager in BPM
Hi all,
is there any update about this case ? Using Case choicelist in coaches without re-creation.
Thanks
------------------------------
Yannick Martin
Original Message:
Sent: Thu October 15, 2020 08:58 PM
From: Thong Huynh
Subject: How to use ChoiceList coming from Case Manager in BPM
Hi all,
I spent some times to poke around.
So I have tried everything and still not able to get the ChoiceList values to display in BPM.
First, I was able to see the list auto-populated in a Coach View configuration option if I define that option's type to be a HousingStatus type
The config setup is like this
I concluded that this is one usage of ChoiceList in BPM whereby you can manipulate your CV based on the values dictated by the ChoiceList.
One example of this is a Chart CV in which you can choose from config option a 'chart type'. If you choose 'Pie Chart', the CV will display a pie chart. If you choose 'Bar Chart' and CV will display a bar chart instead. This action is only for Process/Case Designer rather than the end user.
But this is not what we're looking for in this thread. We want the list to be available to end users using low code techniques.
So I look further and found that there are some JS API available to work with 'content objects'
This documentation says that we now have new namespaces after TWObject. So I went and tried that in server script in a service flow.
You see now we have new APIs tw.object.contentObject and tw.object.property to initialize content objects and their properties.
Ok I then use this init service in a CSHS like this
And then I can see it in the browser logs
BUT it is not a LIST, it's a single object with 2 properties (displayName and value). It's more like the housing status of the applicant in this case, not the reference data.
So this is as far as I can go trying to use APIs to get the list of values defined for HousingStatus in Case.
I also found a knowledge center article for this but no luck as well
Drag and drop variable to the canvat would just create a bunch of Text controls with no value (I expect it to auto generate Select CV with options to select but maybe that's now how it's designed to do)
Unfortunately, I was not able to get it to work as expected. I think the answer on the thread is the correct answer for now. We have to recreate the list in BPM to use it on the coach.
I feel like I got very close the solution.
Hope this helps!