Producer Methods for ProcessInstance and Execution clash

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.2.0, 7.2.0-alpha6
    • Affects Version/s: None
    • Component/s: 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()
      

            Assignee:
            Thorben Lindhauer
            Reporter:
            Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: