BPM, Workflow, and Case

 View Only
  • 1.  Team retrieval service after task assignment

    Posted 20 days ago
    Hi,

    we use team retrieval service.

    After the tasks assignment (and before claiming the tasks), if the team retrieval service produce a different member list, the tasks don't seem to refresh the potential task owner list. Is it possible to refresh the team for ready tasks ? We tried to use an scheduled UCA to automatically refresh the dynamic teams (see document Teams_im_BPM_8.5_part3.pdf)

    Note : we use the "user-tasks" REST API to check the team details on ready tasks.

    Thanks for help



    ------------------------------
    Yannick Martin
    ------------------------------


  • 2.  RE: Team retrieval service after task assignment

    Posted 19 days ago
    Edited by Don Williams 19 days ago
    If possible, you might consider assigning the tasks to an internal group/role (those configured under User Management -> Group Management in the ProcessAdmin console) as changes in the role membership would be reflected immediately.  This may require the creation of many roles depending on your use case, but using a convention for the role names such as (ProcessApp)_(BusinessIdentifier)_(RoleName) has been an effective pattern for many projects I've worked on over the years.  For example:

    • ABCPROC_USA_Requestor
    • ABCPROC_FRA_Requestor
    • ABCPROC_GER_Requestor
    • ABCPROC_USA_Approver
    • ABCPROC_FRA_Approver
    • ABCPROC_GER_Approver

    If the number of roles required is simply too many to manage - i.e. more than 50, for example - then using a Team Retrieval Service or Team Filter Service to dynamically build your team is probably your best bet.  In this case, you could implement a scheduled UCA which executes a service on an interval of your choosing that runs code similar to the following:

    var teams = tw.system.org.getAllTeams();
    for(var i=0; i<teams.length; i++) {
        teams[i].refresh();
    }
    ​
    You could also add an IF statement in the loop to ensure only certain teams are refreshed, if desired.

    ------------------------------
    Don Williams
    ------------------------------



  • 3.  RE: Team retrieval service after task assignment

    Posted 12 days ago
    Hi Don,

    I expect that the ready task list reflect the team membership when I retrieve user tasks thri REST API but it isn't the case.
    First I had to read the sentence saying that the UCA scheduled service (to refresh the team) cannot be scheduled on development environment.
    It has to be started manually.

    My team refresh service is : 
    var team = tw.system.org.findTeamByName("Team1");
    if (team != null) {
    team.refresh();
    }
    team = tw.system.org.findTeamByName("Team2");
    if (team != null) {
    team.refresh();
    }

    But the task list keeps to be the same. In REST API the list of potentiel owners is always the same and the workdashboard for one user which is in and out the team membership doesn't change.

    What am I doing wrong ?

    Thank for help


    ------------------------------
    Yannick Martin
    ------------------------------



  • 4.  RE: Team retrieval service after task assignment

    Posted 9 days ago
    Hi,

    I'm responding to myself.
    My mistake was that, the direct team membership don't updates the tasks potential users, this is what I've tested.
    I have to create an internal role added as member on team to achieve the actual dynamic team membership on tasks.

    Best regards

    ------------------------------
    Yannick Martin
    ------------------------------