• Compartilhar
  • ?
  • Perfis ▼
  • Comunidades ▼
  • Aplicativos ▼

Blogs

  • Meus Blogs
  • Blogs Públicos
  • Minhas Atualizações

ECM Community Blog

  • Efetue login para participar
e8206aad-10e2-4c49-b00c-fee572815374 Blog

▼ Marcações

▼ Entradas Semelhantes

Opening a Case After...

Blog: ECM Community...
Dave Perman 2700007Y91
Atualizado
2 pessoas curtiram istoCurtir 2
Sem ComentáriosComentários 0

zCEE 主机 API 应用案例

Blog: 事务中间件 CICS 原理...
CICSChina 270002RWEH
Atualizado
0 pessoas curtiram istoCurtir 0
Sem ComentáriosComentários 0

Announcing the Avail...

Blog: ECM Community...
Dave Perman 2700007Y91
Atualizado
2 pessoas curtiram istoCurtir 2
Sem ComentáriosComentários 0

云中来去自如,不只是齐天大圣的独有技能了...

Blog: developerWork...
developerWorks中国 2700027P1B
Atualizado
0 pessoas curtiram istoCurtir 0
Sem ComentáriosComentários 0

Updates to the Polic...

Blog: The GRC Power...
Brian Laskey 270003US2W
Atualizado
0 pessoas curtiram istoCurtir 0
Sem ComentáriosComentários 0

▼ Archive

  • abril de 2018
  • março de 2018
  • janeiro de 2018
  • dezembro de 2017
  • setembro de 2017
  • julho de 2017
  • junho de 2017
  • maio de 2017
  • abril de 2017
  • março de 2017
  • dezembro de 2016
  • maio de 2016
  • fevereiro de 2016
  • dezembro de 2015
  • novembro de 2015
  • setembro de 2015
  • agosto de 2015
  • julho de 2015
  • abril de 2015
  • março de 2015
  • fevereiro de 2015
  • dezembro de 2014
  • novembro de 2014
  • outubro de 2014
  • setembro de 2014
  • agosto de 2014
  • julho de 2014
  • junho de 2014
  • maio de 2014
  • abril de 2014
  • março de 2014
  • fevereiro de 2014
  • janeiro de 2014
  • dezembro de 2013
  • novembro de 2013
  • outubro de 2013
  • setembro de 2013
  • agosto de 2013
  • julho de 2013
  • maio de 2013
  • abril de 2013
  • fevereiro de 2013
  • janeiro de 2013
  • dezembro de 2012
  • outubro de 2012
  • setembro de 2012
  • agosto de 2012
  • julho de 2012
  • março de 2012
  • fevereiro de 2012
  • janeiro de 2012
  • dezembro de 2011
  • novembro de 2011
  • outubro de 2011
  • setembro de 2011
  • agosto de 2011

▼ Autores do Blog

ECM Community Blog

Dynamic In-basket Filtering

Dave Perman 2700007Y91 | | Marcações:  tipsandtricks 5.1 icm api acm technote widgets inboxesandcases icmdev demo code | 5 Comentários | 15.511 Visualizações

A common use case for IBM Case Manager solutions is to have a manager assign a user from a role to handle a specific work item. Moving the item into the user's personal inbox is often undesirable due to the loss of easy access to the item once it goes there. By adding a "handler" property to the work item and displaying it in the In-basket allows both assignment and visibility. The trick then becomes "How do I easily display just the current user's assigned items from a shared In-basket queue?". 

The IBM Case Manager In-basket widget can be configured to include user settable filter values where the user can enter a value for a column that will cause only work items with that value to be displayed. By default, the user must manually enter the filter value every time. 

Dynamic in-basket filtering events to the rescue! 

The IBM Case Manager 5.1 in-basket added a new inbound event that allows the user filter values to be set pro grammatically. Let's explore how that works. 

Here's what the event payload looks like to set a couple filter values: 

{"queueName":"WID_ClaimUnderwriter","inbasketName":"Admin Tasks","hideFilterUI":false,"filters":[{"name":"Filter1","value":"p8admin"},{"name":"Filter2","value":"high"}]}

One really important thing to note in the event above is that the filter name is specified by its internal name, not its display label. 

You can't see what internal name is created for you in the Case Builder UI, but there are two ways to find out what they are - look at the in-basket in Process Designer/PCC or send the In-basket selected event to the Script Adapter and look at its payload. The In-basket selected event is fired when the in-basket fire loads and also when the user clicks to another in-basket tab. Here's a snippet of what that event look like. 

{"inbasketCount":2,"currentInbasket":"Admin Tasks","queueName":"WID_ClaimUnderwriter","appSpaceName":"Claims Processing","currentRoleName":"Admin","filters":[{"operator":0,"attributes":"queues/WID_ClaimUnderwriter/workbaskets/Claims/filters/Filter1/attributes","customAttributes":{},"type":2,"name":"Filter1","description":"","_key":"Filter1","displayName":"Assign To User"},...

You can see in the payload above that the internal name for the filter is actually Filter1. Passing an incorrect value will cause the event to simply be ignored. 

Add a Script Adapter to the hidden widgets area of your page and wire it as shown below. 

Configure the Script Adapter widget with code like the following. It uses the Get Current User tip we showed you previously to only show the items assigned to the currently logged on user. 

var PEConnectionPt = ecmwdgt.getBean("spaceConfig").getPEConnectionPoint()​​​​​;
var serverBase = window.location.protocol + "\/\/" + window.location.host;
var getUserURL =serverBase + "/CaseManager/P8BPMREST/p8/bpm/v1/currentuser?cp=" + PEConnectionPt;
var xmlhttp= null;
xmlhttp= new XMLHttpRequest();
xmlhttp.open('GET' , getUserURL , false);
xmlhttp.send();
myResObj = eval('(' + xmlhttp.responseText + ')');
var myUser = myResObj.name;

var filter= {
   "queueName":payload.queueName,
   "inbasketName":payload.currentInbasket,
   "hideFilterUI":true,
   "filters":[
   {
      "name": "Filter1",
      "value":myUser 
   }
   ]
};

return filter;

Modificado por Andy Margonis 0600009N9V
Efetue login para acessar este recurso
  • Incluir um Comentário
  • Mais Ações v
Notificar Outras Pessoas
  • Incluir um Comentário
  • Editar
  • Mais Ações v
  • Colocar esta Entrada em Quarentena
Notificar Outras Pessoas
notification_ex

Enviar Notificação por Email

Colocar esta entrada em quarentena

deleteEntry
duplicateEntry

Marcar como Duplicata

  • Entrada Anterior
  • Principal
  • Próxima Entrada
Feed para Entradas de Blog ▼ | Feed para Comentários de Blog ▼ | Feed para Comentários desta Entrada ▼