PSI访问批准状态 [英] Access to Approval Status by PSI

查看:76
本文介绍了PSI访问批准状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我们安装了Project Server 2010,我的任务是集成旧系统以进行工作时间记录。报告的实际情况应通过PSI的WebService Statusing插入到项目计划中。该流程应按
按以下顺序自动完成:

We have Project Server 2010 installed and I have the task to integrate a legacy system for worktime recording. The reported actuals shall be inserted into the project plans via the WebService Statusing of the PSI. The process shall be automated according to the following sequence:

#1:项目经理批准后,从旧系统中提取工作时间变更。

#2:使用XML更改字符串(UpdateStatus)对已发布的作业应用更改。

#3:将更改的作业提交到审批中心进行审批(SubmitStatusForResource)。

#4:批准中心自动批准提交的作业(管理规则)。

#5:检查是否为所有更改的作业设置了批准。

#6:使用更改的分配更新工作存储中的项目计划(QueueApplyStatusApprovals)。

#7:...(执行项目计划的后续操作,不在此问题的范围内)

#1: Extract the worktime changes from the legacy system after approval by the project managers.
#2: Apply changes to published assignments with XML change strings (UpdateStatus).
#3: Submit changed assignments to the Approval Center for approval (SubmitStatusForResource).
#4: Automatic approval of the submitted assignments by the Approval Center (Manage Rules).
#5: Check whether approvals were set for all changed assignments.
#6: Update project plan in the Working Store with changed assignments (QueueApplyStatusApprovals).
#7: ... (perfom subsequent actions on the project plan, not in the scope of this question)

缺少的项目是#5:检查批准。

The missing item is #5: Check for approvals.

批准决定存储在ASSN_TRANS_ACTION_ENUM字段中。它可以在StatusTransactionDataSet.StatusTransactionsRow类中找到。不幸的是,这个数据集在下一步中由QueueApplyStatusApprovals方法返回
#6。

The approval decision is stored in the field ASSN_TRANS_ACTION_ENUM. It can be found as a property in the StatusTransactionDataSet.StatusTransactionsRow Class. Unfortunately this dataset is returned by the method QueueApplyStatusApprovals in the next step #6.

在调用QueueApplyStatusApprovals之前,有人可以给我建议如何监控批准决策吗?

Can anybody give me advice how to monitor the approval decision prior to invoke QueueApplyStatusApprovals?

最好的问候,

Gregor

Best regards,
Gregor

推荐答案

你好,

你试过吗:

ReadStatusApprovalsInProcess Method

ReadStatusApprovalsSubmitted Method

希望这有帮助,

干杯


这篇关于PSI访问批准状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆