Annotation Interface 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 the FlowableCmmnExtension.

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

Usage

 @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.
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 CmmnEngine.
  • Element Details

    • value

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