org.opensingular.server.commons.flow.renderer.remote.YFilesFlowRemoteRenderer.from()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(73)

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

YFilesFlowRemoteRenderer.from介绍

暂无

代码示例

代码示例来源:origin: org.opensingular/server-commons

private Transition from(MTransition mt) {
  Transition t = new Transition(from(mt.getOrigin()), from(mt.getDestination()), mt.getName(), from(mt.getPredicate()));
  return t;
}

代码示例来源:origin: org.opensingular/singular-server-commons

private Transition from(STransition mt) {
  Transition t = new Transition(from(mt.getOrigin()), from(mt.getDestination()), mt.getName(), from(mt.getPredicate()));
  return t;
}

代码示例来源:origin: org.opensingular/singular-server-commons

@Override
@Nonnull
public byte[] generatePng(@Nonnull FlowDefinition<?> definition, @Nullable ExecutionHistoryForRendering history) {
  FlowDefinitionRenderData pd = new FlowDefinitionRenderData();
  pd.setTasks(new ArrayList<>());
  for (STask<?> task : definition.getFlowMap().getAllTasks()) {
    pd.getTasks().add(from(task, definition.getFlowMap().getStart().getTask()));
  }
  return new RestTemplate().postForObject(url, pd, byte[].class);
}

代码示例来源:origin: org.opensingular/server-commons

@Override
public byte[] generateImage(ProcessDefinition<?> definicao) {
  org.opensingular.server.commons.flow.renderer.remote.dto.ProcessDefinition pd = new org.opensingular.server.commons.flow.renderer.remote.dto.ProcessDefinition();
  pd.setTasks(new ArrayList<>());
  for (MTask<?> task : definicao.getFlowMap().getAllTasks()) {
    pd.getTasks().add(from(task, definicao.getFlowMap().getStartTask()));
  }
  return new RestTemplate().postForObject(url, pd, byte[].class);
}

代码示例来源:origin: org.opensingular/singular-server-commons

private Task from(STask<?> task, STask<?> startTask) {
  Task t = new Task(task.isWait(), task.isJava(), task.isPeople(), task.isEnd(), task.getName(), task.getAbbreviation(), task.equals(startTask), new ArrayList<>(0));
  for (STransition mt : task.getTransitions()) {
    t.getTransitions().add(from(mt));
  }
  return t;
}

代码示例来源:origin: org.opensingular/server-commons

private Task from(MTask<?> task, MTask<?> startTask) {
  Task t = new Task(task.isWait(), task.isJava(), task.isPeople(), task.isEnd(), task.getName(), task.getAbbreviation(), task.equals(startTask), new ArrayList<>(0), task.getMetaDataValue(IFlowRenderer.SEND_EMAIL, false));
  for (MTransition mt : task.getTransitions()) {
    t.getTransitions().add(from(mt));
  }
  return t;
}

相关文章

YFilesFlowRemoteRenderer类方法