本文整理了Java中org.opensingular.server.commons.flow.renderer.remote.YFilesFlowRemoteRenderer
类的一些代码示例,展示了YFilesFlowRemoteRenderer
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YFilesFlowRemoteRenderer
类的具体详情如下:
包路径:org.opensingular.server.commons.flow.renderer.remote.YFilesFlowRemoteRenderer
类名称:YFilesFlowRemoteRenderer
[英]https://www.yworks.com/en/products_yfiles_about.html
[中]https://www.yworks.com/en/products_yfiles_about.html
代码示例来源:origin: org.opensingular/singular-server-commons
@Bean
public IFlowRenderer flowRenderer() {
return new YFilesFlowRemoteRenderer(null);
}
代码示例来源:origin: org.opensingular/singular-server-commons
@Override
public void generatePng(@Nonnull FlowDefinition<?> definition, @Nullable ExecutionHistoryForRendering history,
@Nonnull OutputStream out) throws IOException {
out.write(generatePng(definition, history));
}
代码示例来源: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
@Bean
public IFlowRenderer flowRenderer() {
return new YFilesFlowRemoteRenderer(null);
}
代码示例来源: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;
}
内容来源于网络,如有侵权,请联系作者删除!