PendWorkItemByPeriod
The specified work item is hidden from the worklist until a specified period. A Work Item can only be Pended if it is Allocated to the current user. The specified workitem is hidden from the worklist for the specified period. Note that a pendWorkItem operation that specifies a hiddenPeriod of 0 cancels a hiddenPeriod set by a previous pendWorkItem operation on the same work item.
Action | PendWorkItemByPeriod |
Parameter Notes |
|
Return | VoidResult |
Example |
private void pendWorkItem(WorkListItem item) { ManagedId id = toManagedObject(item); HashSet<ManagedId> ids=new HashSet<ManagedId>(); ids.add(id); BPMWebClientService.getInstance().execute(new PendWorkItemByPeriod(ids, 0, 0, 0, 0, 0, 1), new AsyncCallback<VoidResult>() { @Override public void onFailure(Throwable caught) { Window.alert("Error: " + caught.getMessage()); } @Override public void onSuccess(VoidResult result) { Window.alert("Work item pended for 1 minute"); getWorkList(); } }); } |
Copyright © Cloud Software Group, Inc. All rights reserved.