001    /*
002     * Copyright 1999-2001,2004 The Apache Software Foundation.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */ 
016    
017    package org.apache.commons.workflow;
018    
019    
020    /**
021     * <p>An <strong>Activity</strong> represents an ordered sequence of Steps
022     * that comprise the executable actions necessary to accomplish a business
023     * task.  The dynamic execution of the Steps owned by this Activity happens
024     * within the <code>execute()</code> method of a <code>Context</code> that
025     * is utilizing this <code>Activity</code> definition.</p>
026     *
027     * @version $Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $
028     * @author Craig R. McClanahan
029     */
030    
031    public interface Activity extends Owner {
032    
033    
034        // ------------------------------------------------------------- Properties
035    
036    
037        /**
038         * Return the unique identifier (within this Activity) of this Step.
039         */
040        public String getId();
041    
042    
043        /**
044         * Set the unique identifier (within this Activity) of this Step.
045         *
046         * @param id The new unique identifier
047         */
048        public void setId(String id);
049    
050    
051        // --------------------------------------------------------- Public Methods
052    
053    
054    }