[以编程方式]检测处于特定生命周期状态的文档
我想开发一个软件(使用 DFS)扫描 Documentum Content Server 上的文档并查找附加生命周期的文档;生命周期的当前状态有一定的名称。说“待导出”。
下面是我为此创建的 DQL 查询:
select dm_document.r_current_state, dm_document.r_object_id, dm_document.object_name from dm_document where dm_document.r_policy_id is not NULL and dm_document.r_current_state in (select i_state_no from (select dm_policy.i_state_no, dm_policy) .state_name from dm_policy where dm_policy.r_object_id=dm_document.r_policy_id) where state_name='ToBeExported')
问题是:也许我错过了一些东西;或者有更好的方法吗?
感谢您的帮助
I want to develop a software that (using DFS) will scan documents on Documentum Content Server and find ones that have a lifecycle attached; and current state of the lifecycle has certain name. Say, ‘ToBeExported’.
Below is DQL query I have created for this:
select dm_document.r_current_state, dm_document.r_object_id, dm_document.object_name from dm_document where dm_document.r_policy_id is not NULL and dm_document.r_current_state in (select i_state_no from (select dm_policy.i_state_no, dm_policy.state_name from dm_policy where dm_policy.r_object_id=dm_document.r_policy_id) where state_name='ToBeExported')
The question is: maybe I have missed something; or there is a better way to do it?
Thanks for help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
类似的东西可能会起作用。
但出现了一个问题:为什么生命周期本身不做您想做的任何工作?
Something like that would probably work.
But a question arise: why isn't the lifecycle doing whatever work you want to do, by itself ?