Previous Topic

Next Topic

Book Contents

Book Index

Creating an instance using the Create Job Object example

The following example describes how to create an instance using the Create Job Object.

/*

Instantiate the Create Job object

*/

Request_create_job_type createJobRequest = new Request_create_job_type();

createJobRequest.setUser_token("");

createJobRequest.setControl_m("controlm");

Active_job_type cj_job = new Active_job_type();

cj_job.setJob_name("WS_TEST");

cj_job.setOwner("mnhsopt");

cj_job.setTask_type(Active_task_type.command);

cj_job.setApplication("WS");

cj_job.setGroup("WS_GROUP");

cj_job.setNode_group("mustang");

cj_job.setCommand("ls");

Variable_assignment_type[] cj_variable = new Variable_assignment_type[2];

cj_variable[0] = new Variable_assignment_type();

cj_variable[1] = new Variable_assignment_type();

cj_variable[0].setName("MYVAR1");

cj_variable[0].setValue("MYVALUE1");

cj_variable[1].setName("MYVAR2");

cj_variable[1].setValue("MYVALUE2");

cj_job.setVariable_assignments(cj_variable);

createJobRequest.setActive_job(cj_job);

Parent Topic

Creating Request objects examples