@Test public void processSafeDocumentation() { when(definitionAdapter.getProperty(eq(embeddedSubprocess), eq("subprocessGeneral.name"))).thenThrow(new RuntimeException("Just for testing")); final BPMNDocumentation bpmnDocumentation = tested.processDocumentation(diagram); assertNotNull(bpmnDocumentation); }
@Override public BPMNDocumentation processDocumentation(Diagram diagram) { final Graph<?, Node> graph = diagram.getGraph(); final Optional<BPMNDiagramImpl> diagramModel = getDiagramModel(graph).findFirst(); return BPMNDocumentation.create(getProcessOverview(diagramModel, graph), getElementsDetails(graph), getDiagramImage(Optional.ofNullable(sessionManager.getCurrentSession()) .map(s -> ((ClientSession) s).getCanvasHandler()) .filter(c -> c instanceof AbstractCanvasHandler) .map(c -> (AbstractCanvasHandler) c))); }
ClientBPMNDocumentationService implements BPMNDocumentationService { @Override public BPMNDocumentation processDocumentation(Diagram diagram) { final Graph<?, Node> graph = diagram.getGraph(); final Optional<BPMNDiagramImpl> diagramModel = getDiagramModel(graph).findFirst(); return BPMNDocumentation.create(getProcessOverview(diagramModel, graph), getElementsDetails(graph), getDiagramImage(Optional.ofNullable(sessionManager.getCurrentSession()) .map(s -> ((ClientSession) s).getCanvasHandler()) .filter(c -> c instanceof AbstractCanvasHandler) .map(c -> (AbstractCanvasHandler) c))); } }
ClientBPMNDocumentationService implements BPMNDocumentationService { @Override public BPMNDocumentation processDocumentation(Diagram diagram) { final Graph<?, Node> graph = diagram.getGraph(); final Optional<BPMNDiagramImpl> diagramModel = getDiagramModel(graph).findFirst(); return BPMNDocumentation.create(getProcessOverview(diagramModel, graph), getElementsDetails(graph), getDiagramImage(Optional.ofNullable(sessionManager.getCurrentSession()) .map(s -> ((ClientSession) s).getCanvasHandler()) .filter(c -> c instanceof AbstractCanvasHandler) .map(c -> (AbstractCanvasHandler) c))); } @Inject  ClientBPMNDocumentationService(final ClientMustacheTemplateRenderer mustacheTemplateRenderer,
                                          final DefinitionManager definitionManager,
                                          final DefinitionUtils definitionUtils,
                                          final BPMNShapeFactory shapeFactory,
                                          final CanvasFileExport canvasFileExport,
                                          final SessionManager sessionManager,
                                          final BPMNCategoryDefinitionProvider categoryDefinitionProvider,
                                          final DOMGlyphRenderers glyphRenderer,
                                          final ClientTranslationService translationService,
                                          final @Default ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                                          final PropertyDecorators propertyDecorators

    ); }
ClientBPMNDocumentationService implements BPMNDocumentationService { @Override public BPMNDocumentation processDocumentation(Diagram diagram) { final Graph<?, Node> graph = diagram.getGraph(); final Optional<BPMNDiagramImpl> diagramModel = getDiagramModel(graph).findFirst(); return BPMNDocumentation.create(getProcessOverview(diagramModel, graph), getElementsDetails(graph), getDiagramImage(Optional.ofNullable(sessionManager.getCurrentSession()) .map(s -> ((ClientSession) s).getCanvasHandler()) .filter(c -> c instanceof AbstractCanvasHandler) .map(c -> (AbstractCanvasHandler) c))); } @Inject  ClientBPMNDocumentationService(final ClientMustacheTemplateRenderer mustacheTemplateRenderer,
                                          final DefinitionManager definitionManager,
                                          final DefinitionUtils definitionUtils,
                                          final BPMNShapeFactory shapeFactory,
                                          final CanvasFileExport canvasFileExport,
                                          final SessionManager sessionManager,
                                          final BPMNCategoryDefinitionProvider categoryDefinitionProvider,
                                          final DOMGlyphRenderers glyphRenderer,
                                          final ClientTranslationService translationService,
                                          final @Default ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                                          final PropertyDecorators propertyDecorators

    ); @Override BPMNDocumentation processDocumentation(Diagram diagram); @Override HTMLDocumentationTemplate getDocumentationTemplate(); @Override DocumentationOutput buildDocumentation(HTMLDocumentationTemplate template, BPMNDocumentation diagramDocumentation); @Override DocumentationOutput generate(Diagram diagram); }
ClientBPMNDocumentationService implements BPMNDocumentationService { @Override public BPMNDocumentation processDocumentation(Diagram diagram) { final Graph<?, Node> graph = diagram.getGraph(); final Optional<BPMNDiagramImpl> diagramModel = getDiagramModel(graph).findFirst(); return BPMNDocumentation.create(getProcessOverview(diagramModel, graph), getElementsDetails(graph), getDiagramImage(Optional.ofNullable(sessionManager.getCurrentSession()) .map(s -> ((ClientSession) s).getCanvasHandler()) .filter(c -> c instanceof AbstractCanvasHandler) .map(c -> (AbstractCanvasHandler) c))); } @Inject  ClientBPMNDocumentationService(final ClientMustacheTemplateRenderer mustacheTemplateRenderer,
                                          final DefinitionManager definitionManager,
                                          final DefinitionUtils definitionUtils,
                                          final BPMNShapeFactory shapeFactory,
                                          final CanvasFileExport canvasFileExport,
                                          final SessionManager sessionManager,
                                          final BPMNCategoryDefinitionProvider categoryDefinitionProvider,
                                          final DOMGlyphRenderers glyphRenderer,
                                          final ClientTranslationService translationService,
                                          final @Default ManagedInstance<WorkItemDefinitionRegistry> workItemDefinitionRegistry,
                                          final PropertyDecorators propertyDecorators

    ); @Override BPMNDocumentation processDocumentation(Diagram diagram); @Override HTMLDocumentationTemplate getDocumentationTemplate(); @Override DocumentationOutput buildDocumentation(HTMLDocumentationTemplate template, BPMNDocumentation diagramDocumentation); @Override DocumentationOutput generate(Diagram diagram); static final int ICON_HEIGHT; static final int ICON_WIDTH; }