Package org.flowable.dmn.engine.test
Annotation Type 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 theFlowableDmnExtension.This annotation can be used to create a custom annotation that would provide the configuration resource to the
UsageFlowableDmnExtension.
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.@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) { ... } ... }- Author:
- Filip Hrisafov
-
-
Element Detail
-
value
String value
The location of the resource that should be used to create the DmnEngine.- Default:
- "flowable.dmn.cfg.xml"
-
-