|
Update Object Read-only Attributes |
|
|
|
Written by James Azarja
|
|
Tuesday, 24 August 2010 19:11 |
|
Documentum attribute with "r_" prefix was marked as read-only attribute, using standard DQL, it is impossible to update this attribute, but using EXEC_SQL method we can update any Documentum's objects attributes.
|
|
|
Clone DFC Search Expression Set |
|
|
|
Written by James Azarja
|
|
Monday, 12 July 2010 18:31 |
|
Working with DFC Expression Set (IDfExpressionSet) can takes a lot of effort to manipulating the search expression, especially when you want to remove some expression from the tree. The main problem is the IDfExpressionSet doesn't have remove method to remove any expression in the set. I'm trying to get workaround for that problem, by creating a replicate function for the IDfExpressionSet. Altough cannot easily remove any expression in the set, but by using this function you can "filter" any unwanted expression from given expression set.
|
|
Cleanup All Workflows using SQL |
|
|
|
Written by James Azarja
|
|
Tuesday, 17 February 2009 15:59 |
1 2 3 4 5 6 7
|
DELETE FROM dm_workflow_s DELETE FROM dm_workflow_r DELETE FROM dmi_workitem_s DELETE FROM dmi_workitem_r DELETE FROM dmi_package_s DELETE FROM dmi_package_r DELETE FROM dmi_queue_item_s
|
Make sure you've create a backup, before try to run this SQL statements
|
|
Get All User's Group |
|
|
|
Written by Administrator
|
|
Monday, 09 February 2009 23:23 |
1
|
SELECT group_name FROM dm_group WHERE any i_all_users_names = '<username>'
|
|
|
Getting User Task From Workqueue |
|
|
|
Written by Administrator
|
|
Monday, 09 February 2009 19:10 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
public IWorkQueueMgmt createWorkQueueService(IDfSessionManager paramIDfSessionManager, String paramString) throws DfException { IWorkQueueMgmt localIWorkQueueMgmt = (IWorkQueueMgmt)new DfClientX(). getLocalClient().newService(IWorkQueueMgmt.class.getName(), paramIDfSessionManager); localIWorkQueueMgmt.setDocbase(paramString); return localIWorkQueueMgmt; } public IDfId getNextTask(String username) { Object userQueue; IDfId localIDfId1 = null; try { IWorkQueueMgmt workqueueManagement = createWorkQueueService( session.getSessionManager(), session.getDocbaseName()); userQueue = workqueueManagement.getUserQueue(username); IDfId taskId = ((IUserQueue)userQueue).pullNextTaskEx(null); if (taskId == null) { System.out.println("No Workqueue Task"); } else { IDfWorkitem localIDfWorkitem = (IDfWorkitem)session.getObject(taskId); localIDfId1 = localIDfWorkitem.getQueueItemId(); } } catch (DfException localDfException1) { localDfException1.printStackTrace(); } return ((IDfId)localIDfId1); }
|
|
|
|
|
|
<< Start < Prev 1 2 Next > End >>
|
|
Page 1 of 2 |