1 2 Previous Next 17 Replies Latest reply on Nov 3, 2009 2:35 PM by kukeltje Go to original post
      • 15. Re: Using Process variables as parameters for method calls
        sebastian.s

        Hello Joram,

        no, everything works fine for me. I had an error in reasoning. I was trying to access process variables which were not set yet. But I noticed one thing of which I was not aware before because I wasn't that proficient with reflection:

        Supposing you want to use an integer process variable as an argument for a method call you'll have to use the wrapper class in the method signature. Maybe one should mention this in the userguide to have this remembered when writing java classes to be invoked. I used "int" and at first could not understand why my methods could not be found on the class.

        However, I am not sure if I understand the issue you pointed me to. What is Tom trying to do? He's trying to have an existing process variable be parsed as an Integer and then he is saving the result in a process variable of the same name?

        Cheers
        Sebastian

        • 16. Re: Using Process variables as parameters for method calls
          kukeltje

          Strange, I would have thought it to be a similar issue, but in Toms case it might be that Integer.parseInt(Object) does not exist as a method signature. Oh, and the argument and the return value are the same variable, But the types are different... Is that the usecase? Then he should add more info to the issue. Just like Sebastian stated, what is he trying to achieve?

          • 17. Re: Using Process variables as parameters for method calls
            kukeltje

            Sorry, forgive me, I forgot to read the subject of the post. It's about static methods. Nevertheless, the usage of the same variable and 'Object' type could be an issue as well.

            1 2 Previous Next