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

Producer Methods for ProcessInstance and Execution clash

    XMLWordPrintable

Details

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

    Description

      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()
      

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce