Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-2443

Producer Methods for ProcessInstance and Execution clash

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.2.0, 7.2.0-alpha6
    • None
    • engine

      The 2 producer methods for ProcessInstance and Execution will always create an AmbiguousResolutionException for

      @Inject
      Execution execution;
      

      The reason is that ProcessInstance extends Execution and thus you will have 2 producer methods which satisfy the 'Execution' type.

      A solution for this would be to force the ProcessInstance Producer to only resolve his own type:

        @Produces
        @Named
        @Typed(ProcessInstance.class)
        public ProcessInstance getProcessInstance()
      

        This is the controller panel for Smart Panels app

              thorben.lindhauer Thorben Lindhauer
              struberg Mark Struberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: