Anonymous committed c1e8a65

Patch from WF-467

Comments (0)

Files changed (1)


  *  <li>schedulerName - the name of an existing scheduler to use</li>
  *  <li>schdulerStart - if "true", start the scheduler if it hasn't been started already</li>
  *  <li>txHack - set this to true if you are getting lockups while running with transactions (defaults to false)</li>
+ *  <li>addArguments - set to true if you want the contents of the arguments Map to be available in the JobDataMap of the Job</li>
  * </ul>
  * If you are using a cron trigger, the following is required:
             JobDataMap dataMap = new JobDataMap();
+            if (TextUtils.parseBoolean((String) args.get("addArguments"))) {
+                dataMap.putAll(args);
+            }
             dataMap.put("triggerId", triggerId);
             dataMap.put("entryId", entry.getId());
             dataMap.put("username", username);