Support Article
Cannot Reference Intent When in Intent Task
SA-79711
Summary
Unable to create an Intent Task with an Intent When rule. Therefore, no Intent When rule works.
Error Messages
This record has 2 error(s) in 1 place(s) . Intent— com.pega.pegarules.pub.database.BadClassDefinitionException: Attempting to access a rule with a bad defined-on class: Trying to open rule "<when rule name>" of class "Rule-PegaCA-Intent-When", but no defined-on class (pyClassName) was specified.
Steps to Reproduce
- Create an Intent task in a Data class; Task Class: Starting Flow: Show in list of Available tasks.
- Create an Intent When rule in the Work class and write the logic.
- Refer the Intent When rule in the Intent task.
- Click the Save button on the rule form.
Root Cause
A defect in Pegasystems’ code or rules.
The Associated Class property was missed in the InRule form.
Resolution
Apply HFix-51109.
Published August 15, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.