- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 06:57 AM
Hello, guys, i need help with a problem in SOW.
I need to remove a state flow "Assess" from SOW, but in the SOW this flow is a formatter, and the page is OOB read only.
How do i let the Change in SOW equals to the Change in the Plataform without the "Assess" stage
I already removed from Process Flow but it's not reflected in the SOW Change
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2025 12:15 AM - edited 03-07-2025 12:16 AM
The Chg Stepper in the Overview tab get States on 2 different conditions. You can refer to the below script:
Name: Change Model States
https://<instance_name>.service-now.com/sys_ux_data_broker_transform.do?sys_id=0f1e63d377305110403eaeb4bb5a9981
Line 11:
var modelStates = new global.ChangeModel(chg_model).getStates();
and Line 27:
var choiceGr = new global.STTRMStateChoiceUtil(blankModel)._getSysChoices();
Just do a quick test by deactivating the choice to validate it.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2025 10:54 PM
Hi @Huma Naaz2
Then it's because the Change record in your case comes with a Change Model.
You can look deeper into the script below to understand how it works
Name: Change Model States
https://<instance_name>.service-now.com/sys_ux_data_broker_transform.do?sys_id=0f1e63d377305110403eaeb4bb5a9981
Your case drops into the first condition input.changeModel, so the States are retrieved from this line.
var modelStates = new global.ChangeModel(chg_model).getStates();
It direct to this table
https://<instance_name>.service-now.com/sttrm_state_list.do?sysparm_query=sys_package%3D03684fc2851512108a7c81b65f878930%5EGROUPBYsttrm_model&sysparm_first_row=1&sysparm_view=
The point is that there is no Active flag in there for you to deactivate a specific state. It's model set to configure the state transition.
Cheers,
Tai Vu