Cancelled state doesn't exist in dropdown list in BR

Nataliia_Lova
Tera Guru
Who can explain why the "Cancelled" state isn't to be able to be chosen in the dropdown list in the mark_closed business rule, when in the Choice list table dictionary it is? How can I set it to?
Screenshot 2024-01-25 at 16.18.19.png
Screenshot 2024-01-25 at 16.25.02.png
2 ACCEPTED SOLUTIONS

Since your business rule exists in the Global scope and your choice field exists in the scoped application hence you are not able to access the choice in the business rule. I recommend creating the business rule in the scoped application and you will be able to access the cancelled choice.

 

Hope this helps.

View solution in original post

@Nataliia_Lova Are you calling a TaskStateUtil in your business rule? If yes then use global specifier prior to TaskStateUtil e.g. global.TaskStateUtil

 

Hope this helps.

View solution in original post

9 REPLIES 9

I created a new BR, the same as in the Global. It works clearly, but this error appears when the request state is updated to "Cancelled."
Screenshot 2024-01-25 at 18.34.48.png

@Nataliia_Lova Are you calling a TaskStateUtil in your business rule? If yes then use global specifier prior to TaskStateUtil e.g. global.TaskStateUtil

 

Hope this helps.

Yes. Should I create a new Name and so this should I create a new "closer_task" BR with this new Name?

new error appeared

Screenshot 2024-01-25 at 19.42.28.pngScreenshot 2024-01-25 at 19.33.54.png

Hello @Nataliia_Lova ,

 

instead of instaceOf try using the sys_class_name if you are filtering or checking the task class.

 

Let me know if this works.