Select to view content in your preferred language

Custom Step ReturnValue will not return JOB:PARENT_JOB_NAME

4242
1
Jump to solution
04-29-2015 08:11 AM
AlisonGaiser1
Occasional Contributor

I have created a custom step called otReturnParentJobName.

It uses JTXSteps.ReturnValue and has only one argument

/value:[JOB:PARENT_JOB_NAME]

When I run this step in a job that is a child of another job I get the message "Invalid parameter"

I have checked the database table JTX_JOBS and know that this is a child and can find the name of the parent job in the table.

If I change the step to

/value:[JOB:PARENT_JOB]

It works successfully. Why can it get one value and not the other?

I am running 10.2.2 on Oracle.

Thanks,

     Alison

1 Solution

Accepted Solutions
KevinBedel
Esri Contributor

Hi Alison,

Workflow Manager expects all step return values to be integers, so the ReturnValue step expect all its parameters to be integers in turn. As such, the job name cannot be used as a return value.

Thanks,

Kevin

View solution in original post

1 Reply
KevinBedel
Esri Contributor

Hi Alison,

Workflow Manager expects all step return values to be integers, so the ReturnValue step expect all its parameters to be integers in turn. As such, the job name cannot be used as a return value.

Thanks,

Kevin