@Test public void testIsFormGenerationSupported() { Assert.assertTrue(BPMNFormsContextUtils.isFormGenerationSupported(createNode(new UserTask()))); Assert.assertTrue(BPMNFormsContextUtils.isFormGenerationSupported(createNode(mock(BaseUserTask.class)))); Assert.assertFalse(BPMNFormsContextUtils.isFormGenerationSupported(createNode(mock(BaseTask.class)))); Assert.assertFalse(BPMNFormsContextUtils.isFormGenerationSupported(createNode(new ScriptTask()))); Assert.assertFalse(BPMNFormsContextUtils.isFormGenerationSupported(createNode(new BusinessRuleTask()))); Assert.assertFalse(BPMNFormsContextUtils.isFormGenerationSupported(createNode(new NoneTask()))); Assert.assertFalse(BPMNFormsContextUtils.isFormGenerationSupported(createNode(new StartNoneEvent()))); Assert.assertFalse(BPMNFormsContextUtils.isFormGenerationSupported(createNode(new EndNoneEvent()))); Assert.assertFalse(BPMNFormsContextUtils.isFormGenerationSupported(createNode(new ParallelGateway()))); }
@SuppressWarnings("unchecked") public static boolean isFormGenerationSupported(final Element<?> element) { return null != element.asNode() && element.getContent() instanceof View && ((Element<View<?>>) element).getContent().getDefinition() instanceof BaseUserTask; }
BPMNFormsContextUtils { @SuppressWarnings("unchecked") public static boolean isFormGenerationSupported(final Element<?> element) { return null != element.asNode() && element.getContent() instanceof View && ((Element<View<?>>) element).getContent().getDefinition() instanceof BaseUserTask; } }
BPMNFormsContextUtils { @SuppressWarnings("unchecked") public static boolean isFormGenerationSupported(final Element<?> element) { return null != element.asNode() && element.getContent() instanceof View && ((Element<View<?>>) element).getContent().getDefinition() instanceof BaseUserTask; }  }
BPMNFormsContextUtils { @SuppressWarnings("unchecked") public static boolean isFormGenerationSupported(final Element<?> element) { return null != element.asNode() && element.getContent() instanceof View && ((Element<View<?>>) element).getContent().getDefinition() instanceof BaseUserTask; }  static Object getModel(final FormRenderingContext context); @SuppressWarnings("unchecked") static boolean isFormGenerationSupported(final Element<?> element); }
BPMNFormsContextUtils { @SuppressWarnings("unchecked") public static boolean isFormGenerationSupported(final Element<?> element) { return null != element.asNode() && element.getContent() instanceof View && ((Element<View<?>>) element).getContent().getDefinition() instanceof BaseUserTask; }  static Object getModel(final FormRenderingContext context); @SuppressWarnings("unchecked") static boolean isFormGenerationSupported(final Element<?> element);  }