gpt4 book ai didi

org.hippoecm.addon.workflow.WorkflowDescriptorModel.getWorkflow()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 17:27:05 27 4
gpt4 key购买 nike

本文整理了Java中org.hippoecm.addon.workflow.WorkflowDescriptorModel.getWorkflow()方法的一些代码示例,展示了WorkflowDescriptorModel.getWorkflow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkflowDescriptorModel.getWorkflow()方法的具体详情如下:
包路径:org.hippoecm.addon.workflow.WorkflowDescriptorModel
类名称:WorkflowDescriptorModel
方法名:getWorkflow

WorkflowDescriptorModel.getWorkflow介绍

暂无

代码示例

代码示例来源:origin: org.onehippo.cms7/hippo-cms-workflow-frontend

public DocumentWorkflow getWorkflow() throws RepositoryException {
  return wdm.getWorkflow();
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-workflow-frontend

protected DocumentWorkflow getWorkflow() {
  return getModel().getWorkflow();
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

public Map<String, Serializable> getHints() {
    if (hints != null) {
      return hints;
    }
    DocumentWorkflow workflow = getWorkflow();
    if (workflow != null) {
      try {
        hints = workflow.hints();
        return hints;
      } catch (WorkflowException | RemoteException | RepositoryException e) {
        log.error("Unable to retrieve workflow hints", e);
      }
    }
    hints = Collections.emptyMap();
    return hints;
  }
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-workflow-frontend

final Workflow workflow = new WorkflowDescriptorModel(DEFAULT_FOLDERWORKFLOW_CATEGORY, destinationFolder.getObject()).getWorkflow();
if (workflow instanceof FolderWorkflow) {
  final Map<String, Set<String>> prototypes = (Map<String, Set<String>>) workflow.hints().get("prototypes");

代码示例来源:origin: org.onehippo.cms7/hippo-cms-workflow-frontend

@Override
protected void onPopulate() {
  List<IModel<Request>> requests = new ArrayList<>();
  try {
    WorkflowDescriptorModel model = getModel();
    Workflow workflow = model.getWorkflow();
    if (workflow != null) {
      Map<String, Serializable> info = workflow.hints();
      if (info.containsKey("requests")) {
        Map<String, Map<String, ?>> infoRequests = (Map<String, Map<String, ?>>) info.get("requests");
        for (Map.Entry<String, Map<String, ?>> entry : infoRequests.entrySet()) {
          requests.add(new RequestModel(entry.getKey(), entry.getValue()));
        }
      }
    }
  } catch (RepositoryException | WorkflowException | RemoteException ex) {
    log.error(ex.getMessage(), ex);
  }
  removeAll();
  int index = 0;
  for (IModel<Request> requestModel : requests) {
    Item<Request> item = new Item<>(newChildId(), index++, requestModel);
    populateItem(item);
    add(item);
  }
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-api

protected void execute(WorkflowDescriptorModel model) throws Exception {
  javax.jcr.Session session = UserSession.get().getJcrSession();
  session.save();
  T workflow = model.getWorkflow();
  if (workflow == null) {
    throw new MappingException("action no longer valid");
  }
  String message = execute(workflow);
  if (message != null) {
    throw new WorkflowException(message);
  }
  // invalidate all virtual nodes & notify virtual node listeners
  session.refresh(false);
  UserSession us = UserSession.get();
  us.getFacetRootsObserver().broadcastEvents();
}

代码示例来源:origin: org.onehippo.cms7/hippo-cms-workflow-frontend

Session session = frozenNode.getSession();
DocumentWorkflow documentWorkflow = model.getWorkflow();

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com