Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.2.0.M1
    • Fix Version/s: None
    • Component/s: drools-api
    • Labels:
      None

      Description

      Not really a bug but a proposal of improvement:

      Example:

      ksession.startProcess("myprocess", Collections.singletonMap("myParam", "paramValue"));
      -> Then Eclipse displays an error: "The method startProcess(String, Map<String, Object>) in the type ProcessRuntime is not applicable for the arguments (String, Map<String,String>)"

      The signature of startProcess should be instead:
      ProcessInstance startProcess(String processId, Map<String, ?> parameters);

      Wildcards documentation: http://download.oracle.com/javase/tutorial/extra/generics/wildcards.html

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mark.proctor Mark Proctor
                Reporter:
                maxence.dewil Maxence Dewil
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: