KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > lenya > workflow > impl > ActionImpl


1 /*
2  * Copyright 1999-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
18 /* $Id: ActionImpl.java 42598 2004-03-01 16:18:28Z gregor $ */
19
20 package org.apache.lenya.workflow.impl;
21
22 import org.apache.lenya.workflow.Action;
23 import org.apache.lenya.workflow.WorkflowException;
24 import org.apache.lenya.workflow.WorkflowInstance;
25
26
27 /**
28  * Basic action implementation.
29  */

30 public class ActionImpl implements Action {
31     
32     /**
33      * Creates a new instance of ActionImpl.
34      * @param actionId The action ID.
35      */

36     protected ActionImpl(String JavaDoc actionId) {
37         id = actionId;
38     }
39
40     private String JavaDoc id;
41
42     /**
43      * Returns the action ID.
44      * @return A string.
45      */

46     public String JavaDoc getId() {
47         return id;
48     }
49
50     /**
51      * @see java.lang.Object#toString()
52      */

53     public String JavaDoc toString() {
54         return getId();
55     }
56
57     /**
58      * @see org.apache.lenya.workflow.Action#execute(org.apache.lenya.workflow.WorkflowInstance)
59      */

60     public void execute(WorkflowInstance instance) throws WorkflowException {
61     }
62 }
63
Popular Tags