Announcement Announcement Module
Collapse
No announcement yet.
Problem passing parameters to StringToJobLaunchRequestAdapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem passing parameters to StringToJobLaunchRequestAdapter

    I'm trying to use StringToJobLaunchRequestAdapter but can't seem to get it to pass parameters in using the syntax of jobname [key=value]. The parameter value passed on in the JobParameters object is null.

    If I step into the class, the code appears to be using:
    PATTERN = "([\\w-_]*)(\\[(.*)\\]|.*)

    And the code to pull the parameters is:
    String paramsText = request.replaceAll(PATTERN, "$3");

    which looks to me like it's trying to pull the third group, but there's only two defined in the pattern. I created a test class and it appears to work if I changed the $3 to $2.

    Is this a bug or am I just doing something wrong?

    Thanks!
Working...
X