Anonymous avatar Anonymous committed c1e8a65

Patch from WF-467

Comments (0)

Files changed (1)

src/java/com/opensymphony/workflow/util/ScheduleJob.java

  *  <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);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.