summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-05-08 03:09:38 (EDT)
committerStephan Born2013-05-08 03:09:38 (EDT)
commit10baafd778c2ec3eb287a7788755f53a9f6fc11e (patch)
treef8a02e8fb36bdd0781a3127ffc733f1f5ede8e02
parentcb3ebf279d000c481cf3cf2295b5712f1d2d8104 (diff)
downloadorg.eclipse.stardust.ui.web-10baafd778c2ec3eb287a7788755f53a9f6fc11e.zip
org.eclipse.stardust.ui.web-10baafd778c2ec3eb287a7788755f53a9f6fc11e.tar.gz
org.eclipse.stardust.ui.web-10baafd778c2ec3eb287a7788755f53a9f6fc11e.tar.bz2
Jira-ID: CRNT-28674
Made changes to DocumentMgmtUtility.findProcessesHavingDocument(Document) to use ProcessInstanceQuery.findHavingDocument(Document) to form ProcessInstanceQuery. Removed the code to retrieve modelId git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@64759 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/docmgmt/DocumentMgmtUtility.java20
1 files changed, 5 insertions, 15 deletions
diff --git a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/docmgmt/DocumentMgmtUtility.java b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/docmgmt/DocumentMgmtUtility.java
index 5b636d5..5a60e73 100644
--- a/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/docmgmt/DocumentMgmtUtility.java
+++ b/views-common/src/main/java/org/eclipse/stardust/ui/web/viewscommon/docmgmt/DocumentMgmtUtility.java
@@ -1217,27 +1217,17 @@ public class DocumentMgmtUtility
DocumentManagementService documentManagementService = ServiceFactoryUtils.getDocumentManagementService();
documentManagementService.removeDocument(document.getId());
}
+
/**
* method return processes by document
+ *
* @param document
* @return
*/
public static ProcessInstances findProcessesHavingDocument(Document document)
{
- long processInstanceOID = DmsUtils.getProcessInstanceOID(document.getPath());
- if (processInstanceOID > 0)
- {
- ProcessInstance processInstance = ProcessInstanceUtils.getProcessInstance(processInstanceOID);
- if (null != processInstance)
- {
- DeployedModel model = ModelUtils.getModel(processInstance.getModelOID());
- String modelID = model.getId();
-
- ProcessInstanceQuery processQuery = ProcessInstanceQuery.findHavingDocument(document, modelID);
- return DocumentSearchProvider.getQueryService().getAllProcessInstances(processQuery);
-
- }
- }
- return null;
+ ProcessInstanceQuery processQuery = ProcessInstanceQuery.findHavingDocument(document);
+ return DocumentSearchProvider.getQueryService().getAllProcessInstances(processQuery);
}
+
} \ No newline at end of file