null

Save Dynamic State Pending and State WorkFlow Timmer

Author
Alok Singh
1 min read Share

Previous Behaviour:

Previously, when updating a state through actn=SaveDynamicStatePending, the State Workflow Timer worked only when exactly one workflow entry existed for the nextstate in the State Workflow table.

Updated Behaviour:

The logic has been enhanced to validate both fromstate and nextstate received through the API.

  • The system now checks the State Workflow table for a matching fromstate and nextstate.

  • If exactly one matching workflow entry is found, the corresponding Workflow ID is added to the State Workflow Timer.

  • If no matching entry or more than one matching entry is found, the system skips the State Workflow Timer update.

  • This ensures that the timer is triggered only when there is exactly one valid workflow mapping between the source and destination states.

Impact:

The updated logic ensures accurate workflow identification and prevents incorrect or ambiguous workflow entries from being added to the State Workflow Timer.