当前位置: 首页>>代码示例>>Java>>正文


Java WorkflowDocument.getActionsTaken方法代码示例

本文整理汇总了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);
    }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:VariablesTest.java

示例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));
                    }
                }
            }
        }
    }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:34,代码来源:AnnotationComponent.java


注:本文中的org.kuali.rice.kew.api.WorkflowDocument.getActionsTaken方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。