我尝试以编程方式编辑任务
我的问题是要了解特定任务,允许修改哪些字段
例如,我有一个像这样的任务
[properties] => Array
(
[bpm_percentComplete] => 0
[bpm_description] => ma description
[bpm_hiddenTransitions] => Array
(
)
[bpm_package] => workspace://SpacesStore/33ae7716-1697-413e-bd0c-033efcd13f16
[bpm_dueDate] =>
[bpm_context] => workspace://SpacesStore/fb976941-d7bb-44a8-8c03-263c353fff4c
[bpm_priority] => 2
[bpm_taskId] => 13798
[bpm_reassignable] => 1
[bpm_startDate] => 2014-10-06T09:04:48.000+02:00
[bpm_completedItems] =>
[bpm_pooledActors] => Array
(
)
[bpm_status] => Not Yet Started
[bpm_comment] =>
[wf_reviewOutcome] => Reject
[bpm_completionDate] =>
[bpm_packageActionGroup] =>
[bpm_outcomePropertyName] => wf:reviewOutcome
[cm_content] =>
[bpm_packageItemActionGroup] => edit_package_item_actions
[cm_created] => 2014-10-06T09:04:48.000+02:00
[bpm_outcome] =>
[cm_name] => wf:activitiReviewTask
[cm_owner] => sjeandroz
)
我想(以编程方式)知道哪些字段是" Technicaly字段" (例如cm_name或bpm_taskId),哪一个是可编辑的字段(例如bpm_status或bpm_comment),哪一个不能修改(如bpm_description)
先谢谢你对我糟糕的英语感到抱歉
西尔
答案 0 :(得分:1)
听起来您需要获取为任务定义的表单属性列表。 最简单的方法是使用formService来检索任务的表单数据。
ActivitiUtil.getFormService()getTaskFormData(TASKID);
这将返回表单键,部署ID和为任务定义的表单属性。