Now, I am able to filter the in-baskets according to the value of a property.
Original Message:
Sent: Wed August 17, 2022 10:56 AM
From: Michael Kirchner
Subject: Filter content In-Basket
Hi Roussaya,
as you are using BPMN based Case activity workflow, you are on the right track to use dynamic filters. The "content filter" option for an inbasket as defined in ACCE only works for activities which use FileNet P8 workflows.
Essentially, you need to apply a dynamic inbasket filter as described in the BAW 22.0.1 documentation:
https://www.ibm.com/docs/en/baw/22.x?topic=events-in-baskets-widget-incoming
Follow the syntax in the example (you need to add a comma as the code is not 100% correct). I tested it with a simple solution on my CP4BA 22.0.1 environment where I applied a dynamic filter to the inbasket "Case Worker" defined on the Queue "CT02_CaseWorker" that uses the case property "CT02_Segment) and only shows processes which have the value "VIP" for the CT02_Segment property.
I used the following code in the JS Adaptor:
var dynamicFilterJSON = {
"queueName":"CT02_CaseWorker",
//inbasket queue name
"inbasketName":"Case Worker",
//inbasket name
"hideFilterUI":true,
// true will hide the inbasket filter
"query_bpmVars":[
{
"name":"CT02_Segment",
"value":"VIP",
"type":"xs:string",
"operator":"equals"
}
],
//Use this parameter for Business Automation Workflow process work items.
"queryFilter":"(CT02_Segment = :A)",
//Please see PE Java API doc(VWWorkBasket class,fetchFilteredBatch function, queryFilter parameter) to construct the parameter
"queryFields": [
{
"name": "CT02_Segment",
//filter field symbolic name
"type": "xs:string",
// filter field type
"value":["VIP"]
// Array represents OR condition. The expression only supports equal operator.
// When the filter operator is Equal, that mean "value=="ABC" OR value==XYZ"
// If the filter field is a choice list type, value need to be input by choice item value
// If the filter field is case type, value need to be input by case type id.
},
],
"hideLockedByOther":true
// true will hide the work items locked by other.
};
;
var filter = icm.model.InbasketDynamicFilter.fromJSON(dynamicFilterJSON);
var dynamicFilters= [];
dynamicFilters.push(filter);
var payload = {"dynamicFilters": dynamicFilters,
"cleanDynamicFilterByReset":true};
return payload;
As described in the link posted by Dave, I defined this JS Adaptor for the work page (actually I create a new work page so that I can compare the results) and triggered it via the Page Containers "Page activated" event and sent the payload to the inbasket widgets "Apply filter" event.
This is the original page w/o the dynamic filter applied:
It may be worth to note that the support for dynamic filtering on BPMN workflows in case inbaskets was added in BAW 22.0.1 thus you need to be on that release in order to get it work.
------------------------------
Michael Kirchner
Leading Technical Specialist - Digital Business Automation
IBM Technology
Germany
Original Message:
Sent: Wed August 17, 2022 04:18 AM
From: Roussaya SORDA
Subject: Filter content In-Basket
Hello DAVE PERMAN,
I followed the solution provided by the document that you send: https://iparagons.com/blog/2021/11/02/dynamic-in-basket-filter-in-ibm-case-manager/
However, even if I adapt the script to my needed, the solution doesn't work.

I read that the environnements needed to apply the solution are :
- Case Manager 5.2.1.x / 5.3.3.x
- Content Platform Engine 5.2.1.x / 5.5.x
- Content Navigator 2.0.3.x / 3.0.x
- WebSphere Application Server 8.5.5.x / 9.0.5.x
But, I use BAW 22.0.3 with the BPMN (Business Process Modeling Notation) to set up my workflow.
Do you have a solution which can be work with a workflow using BPMN in BAW 22.0.3 ?
------------------------------
Roussaya SORDA
Original Message:
Sent: Mon August 15, 2022 11:24 AM
From: DAVE PERMAN
Subject: Filter content In-Basket
Hi.
The approach here is still valid when building case solutions in BAW. It uses client-side scripting to preset the case In-basket widget filter and perform an initial search.
Check out this example from one of our community - https://iparagons.com/blog/2021/11/02/dynamic-in-basket-filter-in-ibm-case-manager/
BTW - the comments about this not working on BAW process tasks has been addressed in BAW 22.0.1.
------------------------------
DAVE PERMAN
Original Message:
Sent: Fri August 12, 2022 11:50 AM
From: Roussaya SORDA
Subject: Filter content In-Basket
Hello everyone,
I worked on IBM BAW 22.0.1 to configure a workflow in a case solution.
I would like to add filters to my in-baskets.
I have configured a role (MANAGER) that has two in-baskets. I have configured one since the case solution and I have added one other since the Administration Console for Content Platform Engine (ACCE) which is associated with the MANAGER role.

My goal is to automatically filter the content in both in-baskets with a case property.
On the case client, I see my two in-baskets :

I follow this technical note : https://www.ibm.com/support/pages/node/6576761
But it is for the IBM BAW 21.0.3.
I also configured the filter on the ACCE, but the filter is not applied.

I don't find a technical note to follow to solve the problem.
I don't know how to add an automatically filter in an in-basket to display only the tasks with a specific property value.
Thank you for your help !
------------------------------
Roussaya SORDA
------------------------------