In this workflow, there are two state machines - one nested within the other. The first state machine routes a request based the field 'JIB Type' -- either Temporary or Permanent. And the second state machines nested inside are for switching between the approval processes for the JIB Types.
The states change appropriately until the last state where once approved, it shows the 'Change State' action to End State Machine executes successfully, but the last approval task just keeps getting recreated.