Process flow does not show check marks for previous states

michaelsharp
Mega Expert

Running in Helsinki and going nuts trying to figure out why the process flow does not work consistently.

I have a process flow setup on the dmn_demand table.   I have a total of 7 process flow entries for the dmn_demand table.   I cannot, for the life of me, understand how the system figures out the previous states to determine if a check box should be entered on the PF.   The condition to determine the current state always works properly.   The PF is underlined for the current state and move accordingly.   However, the previous PF entries don't get checked off.   (Well, some do and some don't....and if I delete and recreate the PF entry with the same settings, it may enter a check box, or may not)   I assume (since I can't find any documentation on how the check box is determined, that it is sorted by the order of the PF entries.   Therefore, if the current PF is at 9, all entries with a value of < 9 would display a check box.   This does not appear to be true.   Here are some screen shots showing my PF table entries for the dmn_demand table and what a sample record shows in the form view.

My 7 entries are listed in an order that matches how the demand workflow runs.

Note, I have put the same value in the "name" field only as a test.   If I use a descriptive name in there, it will sometimes remove the checkbox that was working when I had a number in there.

Any help would be appreciated.   There does not appear to be any logic involved in how this is operating.

SN-PFsample.jpg

SN-PFrecord.jpg

1 ACCEPTED SOLUTION

michaelsharp
Mega Expert

Ok, so I think I have this figured out, although it doesn't make a lot of sense.



I noticed that if I changed the name of the Flow Formatter in the PF table, the check boxes would get removed from that state.   I also noticed that the states I was having issues with, were states where the name did not match the state, but rather the order.   So, I changed the name of the entries in the process flow formatter table so that it matches the state.   Now everything works.  



Posting screen shots of what I did:



Modified the Name field on the table to match the state for that chevron.


SN-PFfix.jpg



After doing this, the previous state that wasn't showing a check box (Qualified) is now checked appropriately.   I also have the visited sites field showing in this form for reference.


SN-PFexample.jpg


View solution in original post

6 REPLIES 6

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hello Michael,



States in Process flow formatter are checked if the demand flows through that state. If the demand is moved directly for ex to Qualified from Draft, Draft will be checked and other states between Draft and Qualified will be unchecked.


Is this your case?


michaelsharp
Mega Expert

Thanks for the reply.   This doesn't appear to be the case.   The state field is read only due to a UI policy and I am only transitioning states via workflow and UI actions.   So the Demand would go from Draft to Impact Analysis to Qualified, etc.


michaelsharp
Mega Expert

You are on to something though.   I added the visited states field to the demand and I can see the states that it has been through.   I can manually enter various state numbers and see different process states getting checked.   Looks like there is some differences between the visited state values and the state values.   Looking into this now.   If someone has a suggestion to narrow my search, please post away!  


michaelsharp
Mega Expert

Ok, so I think I have this figured out, although it doesn't make a lot of sense.



I noticed that if I changed the name of the Flow Formatter in the PF table, the check boxes would get removed from that state.   I also noticed that the states I was having issues with, were states where the name did not match the state, but rather the order.   So, I changed the name of the entries in the process flow formatter table so that it matches the state.   Now everything works.  



Posting screen shots of what I did:



Modified the Name field on the table to match the state for that chevron.


SN-PFfix.jpg



After doing this, the previous state that wasn't showing a check box (Qualified) is now checked appropriately.   I also have the visited sites field showing in this form for reference.


SN-PFexample.jpg