public class JobFactory
extends java.lang.Object
Example call from Groovy to create a job definition, execute it synchronously and check for its status:
/*RTPS: {Grades}*/
JobFactory jf = operation.application.jobFactory
JobDefinition jobDef = jf.job("SL Test", "Rules", ["Grades" : rtps.Grades.enteredValue])
Job job = operation.application.executeJob(jobDef)
println job.status
Example call from Groovy to create a job definition, execute it synchronously as a child job of the current Groovy rule being executed and check for its status:
/*RTPS: {Grades}*/
JobFactory jf = operation.application.jobFactory
JobDefinition jobDef = jf.job("SL Test", "Rules", ["Grades" : rtps.Grades.enteredValue])
Job job = executeJob(jobDef)
println job.status
Note: Execution of only following types of jobs is supported via the excuteJob() method: Rules, Ruleset, Template and Clear Cube.
| Constructor and Description |
|---|
JobFactory() |
| Modifier and Type | Method and Description |
|---|---|
JobDefinition |
job(java.lang.String jobName,
java.lang.String jobType,
java.util.Map<java.lang.String,?> paramsMap)
Creates and returns a job definition for the specified properties.
|
public JobDefinition job(java.lang.String jobName, java.lang.String jobType, java.util.Map<java.lang.String,?> paramsMap)
jobName - job namejobType - job typeparamsMap - parameters to run the job withCopyright © 2017, 2025, Oracle and/or its affiliates. All rights reserved.