I’ve dealt with this exact scenario multiple times. Let me walk you through the complete solution addressing all three key areas:
Scorecard Rule Referencing: The first issue is likely how your scorecard is referenced in the decision strategy. When a subprocess creates a new work context, the scorecard needs to know where to find the data. In your decision strategy, verify that the scorecard component is configured to use the correct input source. If your scorecard expects properties from the parent case, you need to explicitly pass the parent case reference as an input to the strategy.
In your subprocess flow, modify the decision shape to include a parameter mapping that passes the parent case: Set a parameter like “ParentCase” = pxCoverInsKey (or your parent case reference property). Then in your decision strategy, configure the scorecard component to reference properties using this parent case context: ParentCase.ApplicantAge, ParentCase.CreditScore, etc.
Subprocess Data Context: The core issue is that subprocesses operate in their own data context. You have three options to resolve this:
- Pass all required properties as subprocess parameters (works for small sets of properties)
- Pass the parent case reference and use it to access parent properties (recommended for complex scorecards)
- Copy required properties to the subprocess at creation time
For option 2 (recommended), when you start the subprocess, use the “Start a subprocess” shape and configure the parameter page to include: pxCoverInsKey = Primary.pxInsName. This creates a reference to the parent case that your scorecard can use.
Decision Strategy Debugging: Enable the Decision Data Analyzer to see exactly what data the scorecard receives. Go to your decision strategy and add a Data Analyzer component right before the scorecard. Configure it to capture the input context. Run your case through the subprocess and then review the Decision Data Analyzer results in the case history.
You’ll likely see that the scorecard is receiving null values for properties it expects. This confirms the data context issue. The fix is to update your scorecard to reference properties through the parent case reference: instead of .CreditScore, use .ParentCase.CreditScore.
Alternatively, you can modify your decision strategy to include a Data Transform component before the scorecard that copies parent case properties into the current context, then the scorecard can use simple property references.
One more critical point: check your scorecard’s Applies To class. It should match either the subprocess work type OR be set to a common parent class that both the main case and subprocess inherit from. If it’s set to a specific class that doesn’t match your subprocess type, the rule won’t execute at all.
After making these changes, test thoroughly by running tracer and verifying that the scorecard executes and the score property gets populated correctly in the subprocess context.