public void setCommitOrder(String order)
    {
        // Check that the specified order matches one of the ordering constants
        if (!order.equals(FORWARD_ORDERING) && !order.equals(REVERSE_ORDERING))
        {
            return;
        }

        // Check that the new ordering is different from the existing one so that some work needs to be done to change
        // it

        if (order.equals(FORWARD_ORDERING) && (accessedScreens instanceof LifoStack))
        {
            // Copy the screens into a forward ordered stack
            accessedScreens = new FifoStack(accessedScreens);
        }
        else if (order.equals(REVERSE_ORDERING) && (accessedScreens instanceof LifoStack))
        {
            // Copy the screens into a reverse ordered stack
            accessedScreens = new LifoStack(accessedScreens);
        }
    }
public void setCommitOrder(String order)
    {
        
        if (!order.equals(FORWARD_ORDERING) && !order.equals(REVERSE_ORDERING))
        {
            return;
        }

        
        

        if (order.equals(FORWARD_ORDERING) && (accessedScreens instanceof LifoStack))
        {
            
            accessedScreens = new FifoStack(accessedScreens);
        }
        else if (order.equals(REVERSE_ORDERING) && (accessedScreens instanceof LifoStack))
        {
            
            accessedScreens = new LifoStack(accessedScreens);
        }
    }
public void setCommitOrder ( String order ) { // Check that the specified order matches one of the ordering constants if ( ! order . equals ( FORWARD_ORDERING ) && ! order . equals ( REVERSE_ORDERING ) ) { return ; } // Check that the new ordering is different from the existing one so that some work needs to be done to change // it if ( order . equals ( FORWARD_ORDERING ) && ( accessedScreens instanceof LifoStack ) ) { // Copy the screens into a forward ordered stack accessedScreens = new FifoStack ( accessedScreens ) ; } else if ( order . equals ( REVERSE_ORDERING ) && ( accessedScreens instanceof LifoStack ) ) { // Copy the screens into a reverse ordered stack accessedScreens = new LifoStack ( accessedScreens ) ; } }
Sets the order in which the saveWork or dicardWork methods of the individual screens encountered in a work flow
are called. On of the constants {@link #FORWARD_ORDERING} or {@link #REVERSE_ORDERING} should be passed as the
value to this method to specify which ordering to use.

@param order The commit ordering to use.
Sets the order in which the saveWork or dicardWork methods of the individual screens encountered in a work flow are called . On of the constants { @link #FORWARD_ORDERING } or { @link #REVERSE_ORDERING } should be passed as the value to this method to specify which ordering to use .