我很难弄清楚如何从 Filenet 获取工作流数据。我尝试使用流程引擎和内容引擎,但我不知道在哪里看。我应该使用 PE 还是 CE?API中还有哪些特定部分?
我已经可以从 CE 获得对象存储列表。此外,我已经可以从 PE 获取搜索参数列表是它的数据,但是我不知道如何获取工作流步骤属性及其数据,并可能通过 JAVA API 对其进行更新。
我很难弄清楚如何从 Filenet 获取工作流数据。我尝试使用流程引擎和内容引擎,但我不知道在哪里看。我应该使用 PE 还是 CE?API中还有哪些特定部分?
我已经可以从 CE 获得对象存储列表。此外,我已经可以从 PE 获取搜索参数列表是它的数据,但是我不知道如何获取工作流步骤属性及其数据,并可能通过 JAVA API 对其进行更新。
您需要使用 PE API 查询工作项。假设工作项在队列中,
VWQueueQuery vwQueueQuery = **yourqueue**.createQuery(java.lang.String indexName, java.lang.Object[] firstValues, java.lang.Object[] lastValues, int queryFlags, java.lang.String filter, java.lang.Object[] substitutionVars, int fetchType)
然后
while (vwQueueQuery.hasNext()) {
vwStepElement = (VWStepElement) vwQueueQuery.next();
//lock if you want to modify the workitem
vwStepElement.doLock(true);
//once you have vwstepelement, there are different ways to get properties
String[] properties = vwStepElement.getParameterNames();//this will give you all the properties that are exposed for that queue.
//if you want to get a specific property then use
Object specificParameter = vwStepElement.getParameterValue("propName");
//then if you want to set a value
vwStepElement.setParameterValue(parameterName, parameterValue, compareValue);
//finally, if you want save and dispatch to next level
vwStepElement.setSelectedResponse(response);
vwStepElement.doSave(true);
vwStepElement.doDispatch();
}