本文整理汇总了Java中org.kuali.rice.kew.api.WorkflowDocument.getActionsTaken方法的典型用法代码示例。如果您正苦于以下问题:Java WorkflowDocument.getActionsTaken方法的具体用法?Java WorkflowDocument.getActionsTaken怎么用?Java WorkflowDocument.getActionsTaken使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kew.api.WorkflowDocument
的用法示例。
在下文中一共展示了WorkflowDocument.getActionsTaken方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: dumpInfoAboutDoc
import org.kuali.rice.kew.api.WorkflowDocument; //导入方法依赖的package包/类
private void dumpInfoAboutDoc(WorkflowDocument doc) throws WorkflowException {
LOG.info("\tDoc: class=" + doc.getDocumentTypeName() + " title=" + doc.getTitle() + " status=" + doc.getStatus());
LOG.info("\tActionRequests:");
for (ActionRequest ar: doc.getRootActionRequests()) {
LOG.info("\t\tId: " + ar.getId() + " PrincipalId: " + ar.getPrincipalId() + " ActionRequested: " + ar.getActionRequested() + " ActionTaken: " + (ar.getActionTaken() != null ? ar.getActionTaken().getActionTaken() : null) + " NodeName: " + ar.getNodeName() + " Status:" + ar.getStatus());
}
LOG.info("\tActionTakens:");
for (ActionTaken at: doc.getActionsTaken()) {
LOG.info("\t\tId: " + at.getId() + " PrincipalId: " + at.getPrincipalId() + " ActionTaken: " + at.getActionTaken());
}
LOG.info("\tNodeNames:");
for (String name: doc.getNodeNames()) {
LOG.info("\t\t" + name);
}
}
示例2: updateDOM
import org.kuali.rice.kew.api.WorkflowDocument; //导入方法依赖的package包/类
public void updateDOM(Document dom, Element configElement, EDLContext edlContext) {
WorkflowDocument document = (WorkflowDocument) edlContext.getRequestParser().getAttribute(
RequestParser.WORKFLOW_DOCUMENT_SESSION_KEY);
// insert current annotation into docContent
Element currentVersion = VersioningPreprocessor.findCurrentVersion(dom);
String annotation = edlContext.getRequestParser().getParameterValue("annotation");
if (!StringUtils.isEmpty(annotation)) {
EDLXmlUtils.createTextElementOnParent(currentVersion, "currentAnnotation", annotation);
}
LOG.debug("Inserting annotation: " + annotation);
List<ActionTaken> actionsTaken = document.getActionsTaken();
if (actionsTaken != null) {
// get the current version of data
// Element currentVersion = VersioningPreprocessor.findCurrentVersion(dom);
// for every ActionTaken, append every annotation as a child element of EDL data element
for (ActionTaken actionTaken : actionsTaken) {
if (actionTaken != null) {
annotation = actionTaken.getAnnotation();
if (annotation != null) {
LOG.debug("Adding annotation: " + annotation);
Person person = KimApiServiceLocator.getPersonService().getPerson(actionTaken.getPrincipalId());
EDLXmlUtils.createTextElementOnParent(currentVersion, "annotation", person.getName() + ": "
+ annotation);
if (LOG.isDebugEnabled()) {
LOG.debug("dom: " + XmlJotter.jotNode(dom));
}
}
}
}
}
}