Annotation Interface DmnConfigurationResource


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface DmnConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for the FlowableDmnExtension.

This annotation can be used to create a custom annotation that would provide the configuration resource to the FlowableDmnExtension.

Usage
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@DmnConfigurationResource("flowable.custom.dmn.cfg.xm")
public @interface MyCustomResource {

}

@FlowableDmnTest
@MyCustomResource
class YourTest {

  @BeforeEach
  void setUp(DmnEngine dmnEngine) {
    ...
  }

  @Test
  void myTest(DmnRuleService dmnRuleService) {
    ...
  }
  ...
}
In this example the configuration flowable.custom.dmn.cfg.xml will be used to create the DmnEngine NB: This only works for the tests with JUnit Jupiter.
Author:
Filip Hrisafov
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The location of the resource that should be used to create the DmnEngine.
  • Element Details

    • value

      String value
      The location of the resource that should be used to create the DmnEngine.
      Default:
      "flowable.dmn.cfg.xml"