Process Model generating incorrect script task output

I have an expression rule that returns a value based on rule inputs.

When I run this rule as it own passing my test inputs, it gets the data I expect (an integer or 0).  But when I run the rule in process model B, I get null as output even though my expression rule has no condition returning null. 

This is the expression rule with inputs and it's output

Below is how I set up activity class of the script task inputs, I then saved it into a process variable pv!autoCaseTye in the outputs. 

However I only receive null as output instead of 50.

The node that runs the rule has the exact same inputs and data type. It should return the same value as expression rule. How do I check the issue?

  Discussion posts and replies are publicly visible

Parents
  • The first thing I would do is adjust the definition on your local variable, this should be prefixed with "local!" (local!inputCaseTypeData:  xyx), and re-test.

    From there, confirm pv!docDetails holds expected values / same as you are using in the expression rule tests?

    In some situations, I will create a set of TEMP variables in the process model for debugging, and save various pieces of the expressions into them for review.  For example, sub rules could be creating the null output if the input is not expected, etc, depending on setup.

Reply
  • The first thing I would do is adjust the definition on your local variable, this should be prefixed with "local!" (local!inputCaseTypeData:  xyx), and re-test.

    From there, confirm pv!docDetails holds expected values / same as you are using in the expression rule tests?

    In some situations, I will create a set of TEMP variables in the process model for debugging, and save various pieces of the expressions into them for review.  For example, sub rules could be creating the null output if the input is not expected, etc, depending on setup.

Children
No Data