Enable mocked expression resolution in Spring context

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.15.0-alpha3, 7.15.0
    • Affects Version/s: None
    • Component/s: engine
    • None

      Example wired for Spring Testing doesn't work wit DelegateExecution. Example

      ProcessExpressions.registerCallActivityMock(DELIVERY_PROCESS_KEY)
              // any onExecution doesn't work
              .onExecutionAddVariable("some_var", "value")
              .onExecutionDo(execution -> {
                  //...
              })
              .deploy(rule);
      

      [main] ERROR org.camunda.bpm.engine.context - ENGINE-16004 Exception while closing command context: Unknown property used in expression: ${addVariablesServiceMock_802ce91d}. Cause: Cannot resolve identifier 'addVariablesServiceMock_802ce91d'

       

            Assignee:
            Unassigned
            Reporter:
            Yuriy Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: