How to change the default category(lable) of active cases from inbox to other like 'overdue'

1
0
-1

Hi i have a question that,

all the active cases will come under category(label) inbox. but as per my requirement depending the user click on assign or unAssign button in Bonita XP, the case on which the button clicked should be moved to the different category like "overdue" with in the server. i tried a lot but i dint get an exact solution.

could you please help me in this.

regards,

Saran P.

2 answers

1
+2
-1

i came to know that there is a web api which will give us a way to do this.

i have used this as follows,

WebAPI webAPI = AccessorUtil.getWebAPI();

Set caseList = new HashSet();
caseList.add(processInstance.getProcessInstanceUUID());
webAPI.addCasesToLabel("Admin", "Overdue", caseList);

But i dint get excat solution what i have expected.

here the three arguements of the method are String user,String lable,Set but i just want to know what is user, and what is lable. what ever i have implemented is correct or not? could u please confirm us.

regards,

Saran Kumar P.

1
0
-1

with the above code, we can add cases to the existing lables. but all the cases been added to the existing lable are not visible on the UI. when we put the below logic i will come to know that the cases been added but they are not visible on the screen.

HashSet alabels = new HashSet();
alabels.add("At risk");
Set Atriskcases = webAPI.getCases(getLogin(), alabels);

please help me in this how to make the cases added to the lable visible on the screen.

regards,

Saran

Notifications