BPM, Workflow, and Case

 View Only
  • 1.  Dynamic inbasket filtering using system property

    Posted 5 hours ago

    Hello All,

    I have a requirement to filter the workitems locked by the current logged in user.

    The script tried is below, unfortunately this works only for properties exposed in the inbasket, but what I am looking for is F_LockedUser.

    Could someone please help to understand whether thiss is something achievable?

    console.log("Dynamic filter processing.. ", payload);
    var modelArray = [];
    
    console.log("logged in user :", ecm.model.desktop.userDisplayName);
    
    
    var filter = {
        "queueName": "IBMD_LVTeamLeader",
        "inbasketName": "Claims Received",
        "hideFilterUI": true,
        "hideLockedByOther": true,
        "queryFilter": "(F_LockedUser=:A)",
        "queryFields": [
            {
                "name": "F_LockedUser",
                "type": "xs:string",
                "value": [ecm.model.desktop.userDisplayName],
                "isSystem": true
            }
        ]
    };
    
    //filter.queryFields[0].value = ecm.model.desktop.userDisplayName ;
    console.log("Inside filter ", filter);
    var model = icm.model.InbasketDynamicFilter.fromJSON(filter);
    console.log("model : " ,model);
    modelArray.push(model);
    return {"dynamicFilters":modelArray};
    
    
    
    



    ------------------------------
    Vipin EV
    ------------------------------


  • 2.  RE: Dynamic inbasket filtering using system property

    Posted 4 hours ago

    If your in-basket is Filenet P8 processes not BPM processes you should be able to use the Filenet Process designer app to add this filter to your in-basket without needing it to be in the exposed columns. If you are using BPM processes, I am not sure with the dynamic filter. You can always use the "my work" in-basket which already filters the BPM processes by those assigned to ("locked" by) the current user. 



    ------------------------------
    Julie Garza
    ------------------------------



  • 3.  RE: Dynamic inbasket filtering using system property

    Posted 8 minutes ago

    Apologies, I need to actually amend the question, its not really filtering the inbasket, its hiding some of the work items and display only items locked by the user. So when the user finihes the current and clicks Get Next, user will be presented back with an available work item.



    ------------------------------
    Vipin EV
    ------------------------------