How to get a IDfWorkitem from IDfWorkflow?
Best Answer
-
Hi,
select * from dmi_workitem where r_runtime_state in (0,1) and r_workflow_id='yourworkflowid'
This dql lists your workflows dormant and acquired workitems. If workitems can be suspended, then take into account that too.
You should get a copy of Server Object Reference PDF.
0
Answers
-
Hi,
select * from dmi_workitem where r_runtime_state in (0,1) and r_workflow_id='yourworkflowid'
This dql lists your workflows dormant and acquired workitems. If workitems can be suspended, then take into account that too.
You should get a copy of Server Object Reference PDF.
0 -
My Code, hope it will be helpful
IDfWorkflowEx wfe = ( IDfWorkflowEx ) session.getObject(id);
String dql = "select * from dmi_workitem_s where r_runtime_state in (0,1) and r_workflow_id='" + wfe.getProcessId() + "'";
IDfEnumeration objectsByQuery = session.getObjectsByQuery( dql , "dmi_workitem" );
IDfWorkitemEx wiEx = new DfWorkitemEx();
if ( objectsByQuery.hasMoreElements() ) {
wiEx = (IDfWorkitemEx) objectsByQuery.nextElement();
}
Thank's, for all support.
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management