search cancel

Unable to call job in process step when one of the job parameters is required and Read-only

book

Article ID: 212566

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

Users are running Data extract from Process using "Run Job" Action in a process step, but they are getting error as "ERROR NJS-0119: At least one parameter is invalid. Check the parameters and submit again".

When checked Admin side Data Extract Job "Process ID" Parameter is mandatory and Read Only. This Parameter is not coming when we try to call as Run Job.

Data Extract all parameters are not loading while adding it in a RUN JOB step. This happens on any jobs that have parameters.

Steps to Reproduce: 

  1. Create job definition by going to Administration, Reports and Jobs, click 'New' button 
    • Job Definition Name = Data Extractor 
    • Job Definition ID = data_ext 
    • Content Source = Customer 
    • Description = Data Extractor 
    • Active flag is one 
    • Executable Type = Java 
    • Executable Name = com.niku.bpm.jobs.ExecuteProcessJob 
    • Enable Log = On 
    • Enable Output = Yes 
  2. Click Save and Continue to go to Parameters tab 
  3. Create a parameter on the job 
    • Parameter Label = Process ID
    • Bind Parameter Code = process_code
    • Type = Browse
    • Default = Set to any process you have in the system no object based
    • Required = ON
    • Read-only = ON
  4. Click on 'Save and Return' button 
  5. Now create a test process from where you will attempt to execute above created job via Run Job action
  6. After attempting to create Run Job action and trying to save you will get an error "NJS-0119: At least one parameter is invalid. Check the parameters and submit again." 

Expected Results: You should be able to see Read-only parameters via Run Job action just like you see them when attempting to run a job via Home->Reports and Jobs

Actual Results: You get an error "NJS-0119: At least one parameter is invalid. Check the parameters and submit again.". 

Cause

DE60450 

Workaround: Uncheck Read-only flag for the job parameter or leave it as Read-only but make it a non-required parameter with a default set.  

Environment

Release : 15.9.2, 15.9.3 

Resolution

Fixed in Release 16.0.0.