Why plan start and end date fields are editable post Authorize state?

sekarpdkt
Kilo Contributor

I am finding these two fields are editable till end. Ideally post authorized by CAB (mean in Scheduled / Implement / Review state), in case of normal change, these fields shall not be editable. Any reason why these are kept editable? I tested this in Istanbul instance. I can add UI-Policies etc, but want to know the reason behind it.

Thanks.

1 ACCEPTED SOLUTION

What we did:


1) created a UI Policy to make Planned Start & Planned End read-only if State is not New.



2) created a UI Action that:


- Returns the state back to New so Planned Dates can be changed. (Happy to provide the full script if you need it)



3) Modified oob Business rule named - SNC Approval - Reset conditions


- Business Rule will reset the workflow


Note: the business rule has lots of comments to explain how it works exactly.



For the Reset Condition we are using: if (current.state.changesTo("-5"))


so reset triggers when State changes back to New



Then we're using Option 2 in the BR:


new WorkflowApprovalUtils().reset(current, comment);


current.approval = 'not requested';


gs.addInfoMessage('Workflow has been reset since Planned Dates have been modified');



This should give you the basics


View solution in original post

10 REPLIES 10

Michael Fry1
Kilo Patron

Don't know the reason behind, but completely agree. We locked them down after Request for Approval, however, if they need to be changed, we're using out of box BR to reset workflow and remove all approvals, regardless of state.


Hi



It might help me to get out of some mess. Can you pls give me some hint? Are you saying using some OOTB BR, we can move the change to assess state if planned start/end is changed (may be with some modification)? If that happens will help me a lot.



I was having more challenges as change process manual is not having a status to move change from Schedule state to Assess/Authorise. If at all needed   need to modify workflow or something. If you say 'if they need to be changed, we're using out of box BR to reset workflow and remove all approvals, regardless of state.', that might be useful. May be I need not reinvent entire wheel




Thanks.


What we did:


1) created a UI Policy to make Planned Start & Planned End read-only if State is not New.



2) created a UI Action that:


- Returns the state back to New so Planned Dates can be changed. (Happy to provide the full script if you need it)



3) Modified oob Business rule named - SNC Approval - Reset conditions


- Business Rule will reset the workflow


Note: the business rule has lots of comments to explain how it works exactly.



For the Reset Condition we are using: if (current.state.changesTo("-5"))


so reset triggers when State changes back to New



Then we're using Option 2 in the BR:


new WorkflowApprovalUtils().reset(current, comment);


current.approval = 'not requested';


gs.addInfoMessage('Workflow has been reset since Planned Dates have been modified');



This should give you the basics


I would love to see the script you mentioned in step 2 of your process!