@Test public void testObtainResolutionFactor() { double factor = DefinitionResolver.obtainResolutionFactor(); assertEquals(DefinitionResolver.DEFAULT_RESOLUTION, factor, 0d); System.setProperty(DefinitionResolver.BPMN_DIAGRAM_RESOLUTION_PROPERTY, "0.25"); factor = DefinitionResolver.obtainResolutionFactor(); assertEquals(0.25d, factor, 0d); System.clearProperty(DefinitionResolver.BPMN_DIAGRAM_RESOLUTION_PROPERTY); }
static double obtainResolutionFactor() { final String resolution = System.getProperty(BPMN_DIAGRAM_RESOLUTION_PROPERTY); if (null != resolution && resolution.trim().length() > 0) { try { return Double.parseDouble(resolution); } catch (NumberFormatException e) { LOG.error("Error parsing the BPMN diagram's resolution - marshalling factor... " + "Using as default [" + DEFAULT_RESOLUTION + "].", e); } } return DEFAULT_RESOLUTION; }
DefinitionResolver { static double obtainResolutionFactor() { final String resolution = System.getProperty(BPMN_DIAGRAM_RESOLUTION_PROPERTY); if (null != resolution && resolution.trim().length() > 0) { try { return Double.parseDouble(resolution); } catch (NumberFormatException e) { LOG.error("Error parsing the BPMN diagram's resolution - marshalling factor... " + "Using as default [" + DEFAULT_RESOLUTION + "].", e); } } return DEFAULT_RESOLUTION; } }
DefinitionResolver { static double obtainResolutionFactor() { final String resolution = System.getProperty(BPMN_DIAGRAM_RESOLUTION_PROPERTY); if (null != resolution && resolution.trim().length() > 0) { try { return Double.parseDouble(resolution); } catch (NumberFormatException e) { LOG.error("Error parsing the BPMN diagram's resolution - marshalling factor... " + "Using as default [" + DEFAULT_RESOLUTION + "].", e); } } return DEFAULT_RESOLUTION; } DefinitionResolver(
            Definitions definitions,
            Collection<WorkItemDefinition> workItemDefinitions,
            boolean jbpm,
            Mode mode);  DefinitionResolver(Definitions definitions,
                              Collection<WorkItemDefinition> workItemDefinitions); }
DefinitionResolver { static double obtainResolutionFactor() { final String resolution = System.getProperty(BPMN_DIAGRAM_RESOLUTION_PROPERTY); if (null != resolution && resolution.trim().length() > 0) { try { return Double.parseDouble(resolution); } catch (NumberFormatException e) { LOG.error("Error parsing the BPMN diagram's resolution - marshalling factor... " + "Using as default [" + DEFAULT_RESOLUTION + "].", e); } } return DEFAULT_RESOLUTION; } DefinitionResolver(
            Definitions definitions,
            Collection<WorkItemDefinition> workItemDefinitions,
            boolean jbpm,
            Mode mode);  DefinitionResolver(Definitions definitions,
                              Collection<WorkItemDefinition> workItemDefinitions); BPMNDiagram getDiagram(); double getResolutionFactor(); boolean isJbpm(); Definitions getDefinitions(); Process getProcess(); Mode getMode(); Collection<WorkItemDefinition> getWorkItemDefinitions(); Optional<Signal> resolveSignal(String id); String resolveSignalName(String id); Optional<ElementParameters> resolveSimulationParameters(String id); BPMNShape getShape(String elementId); BPMNEdge getEdge(String elementId); }
DefinitionResolver { static double obtainResolutionFactor() { final String resolution = System.getProperty(BPMN_DIAGRAM_RESOLUTION_PROPERTY); if (null != resolution && resolution.trim().length() > 0) { try { return Double.parseDouble(resolution); } catch (NumberFormatException e) { LOG.error("Error parsing the BPMN diagram's resolution - marshalling factor... " + "Using as default [" + DEFAULT_RESOLUTION + "].", e); } } return DEFAULT_RESOLUTION; } DefinitionResolver(
            Definitions definitions,
            Collection<WorkItemDefinition> workItemDefinitions,
            boolean jbpm,
            Mode mode);  DefinitionResolver(Definitions definitions,
                              Collection<WorkItemDefinition> workItemDefinitions); BPMNDiagram getDiagram(); double getResolutionFactor(); boolean isJbpm(); Definitions getDefinitions(); Process getProcess(); Mode getMode(); Collection<WorkItemDefinition> getWorkItemDefinitions(); Optional<Signal> resolveSignal(String id); String resolveSignalName(String id); Optional<ElementParameters> resolveSimulationParameters(String id); BPMNShape getShape(String elementId); BPMNEdge getEdge(String elementId);  }