1 /* 2 * Copyright 1999-2001,2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package org.apache.commons.workflow; 18 19 20 /** 21 * <p>An <strong>Activity</strong> represents an ordered sequence of Steps 22 * that comprise the executable actions necessary to accomplish a business 23 * task. The dynamic execution of the Steps owned by this Activity happens 24 * within the <code>execute()</code> method of a <code>Context</code> that 25 * is utilizing this <code>Activity</code> definition.</p> 26 * 27 * @version $Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $ 28 * @author Craig R. McClanahan 29 */ 30 31 public interface Activity extends Owner { 32 33 34 // ------------------------------------------------------------- Properties 35 36 37 /** 38 * Return the unique identifier (within this Activity) of this Step. 39 */ 40 public String getId(); 41 42 43 /** 44 * Set the unique identifier (within this Activity) of this Step. 45 * 46 * @param id The new unique identifier 47 */ 48 public void setId(String id); 49 50 51 // --------------------------------------------------------- Public Methods 52 53 54 }