summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Mishra2012-03-19 07:52:29 (EDT)
committer Manik Kishore2012-06-19 07:22:10 (EDT)
commitd3b6d2536aa455e8a7f5b6b4e1e100d72a929bf5 (patch)
tree6b40d4fd12a6000f78a01cdfb3571050258517a8
parentd1faa17baba3418b89688c82f1ebf75ea4e5820f (diff)
downloadorg.eclipse.stardust.ui.web-d3b6d2536aa455e8a7f5b6b4e1e100d72a929bf5.zip
org.eclipse.stardust.ui.web-d3b6d2536aa455e8a7f5b6b4e1e100d72a929bf5.tar.gz
org.eclipse.stardust.ui.web-d3b6d2536aa455e8a7f5b6b4e1e100d72a929bf5.tar.bz2
Jira-ID: CRNT-24223
show message if delegate in-active case to user git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@54643 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java23
1 files changed, 16 insertions, 7 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java
index d900577..b8a61d8 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/views/casemanagement/CaseDetailsBean.java
@@ -686,13 +686,22 @@ public class CaseDetailsBean extends PopupUIComponentBean
*/
public void openDelegateDialog(ActionEvent ae)
{
- List<ActivityInstance> ais = CollectionUtils.newArrayList();
- ais.add(activityInstance);
- DelegationBean delegationBean = (DelegationBean) FacesUtils.getBeanFromContext("delegationBean");
- delegationBean.setAis(ais);
- delegationBean.setDelegateCase(true);
- delegationBean.setICallbackHandler(this);
- delegationBean.openPopup();
+ processInstance = ProcessInstanceUtils.getProcessInstance(processInstance.getOID());
+ if (!isInactiveCase())
+ {
+ List<ActivityInstance> ais = CollectionUtils.newArrayList();
+ ais.add(activityInstance);
+ DelegationBean delegationBean = (DelegationBean) FacesUtils.getBeanFromContext("delegationBean");
+ delegationBean.setAis(ais);
+ delegationBean.setDelegateCase(true);
+ delegationBean.setICallbackHandler(this);
+ delegationBean.openPopup();
+ }
+ else
+ {
+ MessageDialog.addMessage(MessageType.ERROR, MessagePropertiesBean.getInstance().getString("common.error"),
+ COMMON_MESSAGE_BEAN.getString("common.notifyProcessAlreadyAborted"));
+ }
}
/**