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

Producer Methods for ProcessInstance and Execution clash

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.0, 7.2.0-alpha6
    • Component/s: engine
    • Labels:

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: