Skip to Content
0
Former Member
Dec 14, 2011 at 09:58 AM

Field Type on Parameter POC for job definition test must be specified

66 Views

I am trying to add a parameter POC to a jobDefinition test by using RedwoodScript and am getting the following error

Caused by: JCS-122035: Unable to persist: JCS-MULTI: Modification vetoed: JCS-102074: Field Type on Parameter POC for job definition test must be specified

following is the script which I have coded

JobDefinition jobdef = jcsSession.getJobDefinitionByName('test');

JobDefinitionParameter jobdefparam;

jcsOut.println(jobdef.getName());

if (jobdef != null )

{

jobdefparam = jobdef.getJobDefinitionParameterByName("POC");

if (jobdefparam == null )

{

Long longObj2 = new Long("200");

jcsOut.println("No POC");

JobDefinitionParameter jdp = jobdef.createJobDefinitionParameter();

jdp.setName("POC");

jdp.setDefaultExpression(strList[3]);

jdp.setDisplayOrder(longObj2);

jcsSession.persist();

}

}