Package org.flowable.cmmn.engine.test
Annotation Type CmmnConfigurationResource
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface CmmnConfigurationResource
An annotation that can be used on test classes or as a meta annotation to use a custom configuration resource for theFlowableCmmnExtension.This annotation can be used to create a custom annotation that would provide the configuration resource to the
UsageFlowableCmmnExtension.
In this example the configuration flowable.custom.cmmn.cfg.xml will be used to create the CmmnEngine NB: This only works for the tests with JUnit Jupiter.@Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented @CmmnConfigurationResource("flowable.custom.cmmn.cfg.xm") public @interface MyCustomResource { } @FlowableCmmnTest @MyCustomResource class YourTest { @BeforeEach void setUp(CmmnEngine cmmnEngine) { ... } @Test void myTest(CmmnRuntimeService cmmnRuntimeService) { ... } ... }- Author:
- Filip Hrisafov
-
-
Element Detail
-
value
String value
The location of the resource that should be used to create the CmmnEngine.- Default:
- "flowable.cmmn.cfg.xml"
-
-