@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface CmmnConfigurationResource
FlowableCmmnExtension.
This annotation can be used to create a custom annotation that would provide the configuration resource to the FlowableCmmnExtension.
@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) {
...
}
...
}
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.public abstract String value
Copyright © 2021 Flowable. All rights reserved.