How to skip states (Untick) in the process flow when they are not met with the conditions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 04:48 AM - edited 02-06-2025 04:53 AM
Hi Community,
We have a table called Visitor registration. In the process flow formatter, It has states like planned, checked in , checked out, no show, cancelled, disappeared.
If the visitor registration record is cancelled, the process flow doesn't need to tick all the states in between. It needs to show the cancelled state in process flow with a tick mark. How to achieve this?
I have tried with modifying the conditions in the flow formatter table, It doesn't work though.
Any suggestion is much appreciated. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 06:05 AM
I think no, it will increase the technical debts, prefer not to do, you can educate users and avoid these changes.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 08:20 AM
Before I will answer your question I want to follow the before given advice that any customizations will increase technical debts and should be avoided.
But it is possible to only checkmark states which were visited before, which is also used by the demand management application.
Therefore this is a combination of OOTB functionality and some customizations.
If you already got the Process Flow Formatter in Place you will only need the following:
- On your table: a new field which collect the states which were already visited (Compare: Field "Visited States" on Demand Table)
- A Business Rule or other logic to fill your field with the correct entries (Compare: BR "Updated Visited States on state chang" on demand table)
- A global BR which is called [table_name]_ProcessFlowList:
- Open the dmn_demand_ProcessFlowList BR (also mentioned within this Knowledge Article: Demand State Change Process flow formatter hides Completed stage.)
- Copy the code from the Script field
- Copy the code into your BR Script field - make sure that you override everything within the Script field of your BR
- Change the name of the function to [table_name]_ProcessFlowList()
- Exchange the collection field (visited_state) as well as the table name within the code
- Save
Since your instance got two different macros with the same name for the Process Flow Formatter, it will be picked by the system without other changes.
Please use this with caution.