Change Model - Automated State Transition not working

sbanc
Kilo Guru

Dear Community

 

I have a simple requirement to fulfill, but the solution does not seem that simple as thought.

 

The business requested the following:

A already approved change request, should revert to the authorization level again, if the planned start date or planned end date were changed by a user, so another approval should be requested, as the previous approval was not for the new values.

 

I added an automatic state transition from "Scheduled" to "Assess" to the change model with the condition "Planned start date OR Planned end date changes", but it won't run. It always ends up with the error message "Change model 'Infrastructure Change' prevented state transition from Scheduled to Assess".
I also checked the ChangeRequestStateHandler and added the possibility to transition to the assess state from scheduled.

Additionally, I checked the BR "Change Model: Check State Transition" Condition "if (!changeModel.canTransition(previousState, current))" in background script for a given change request, but this always returns, that it is not allowed to perform the transition.

 

Did I miss something? We are on a Change Model only implementation, so workflows should not be considered.

 

Thanks for any help!

 

Cheers

Simon

1 REPLY 1

Rafał Rataj
Tera Contributor

Hi, 

the states transitions are OK 

but there is nothing that captures the planned dates update to re-evaluate the change state model 

There are the OOTB Flows 

  • Change - Normal - Authorize
  • Change - Normal - Assess
  • Change - Normal - Implement 

so you have to create a Change - Normal - Scheduled flow, with a trigger for the scheduled state and ( a custom)  action to detect the dates changes

and invoke the 'Evaluate Change Model' Action  

also you want to 'Disregard Change Request Approvals' the current approvals

 

eventually you can use a BR to trigger this new flow (on update with condition start date /end date changes )