1 /*******************************************************************************
2 * Imixs Workflow
3 * Copyright (C) 2001, 2011 Imixs Software Solutions GmbH,
4 * http://www.imixs.com
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You can receive a copy of the GNU General Public
17 * License at http://www.gnu.org/licenses/gpl.html
18 *
19 * Project:
20 * http://www.imixs.org
21 * http://java.net/projects/imixs-workflow
22 *
23 * Contributors:
24 * Imixs Software Solutions GmbH - initial API and implementation
25 * Ralph Soika - Software Developer
26 *******************************************************************************/
27
28 package org.imixs.workflow;
29
30 /**
31 * This Interface defines the Context which is used to supply a basic enviroment
32 * for the exchange between a WorkflowManager an the registered Plugin Moduls.
33 * Normaly the WorkflowManager Implementation itself implents this Interface to
34 * provide the Context for the Workflow components.
35 *
36 * @author imixs.com
37 * @version 1.0
38 * @see org.imixs.workflow.WorkflowKernel
39 */
40
41 public interface WorkflowContext {
42
43 /**
44 * This Methode returns the Runtime enviroment for a workflow
45 * Implementation. is usesd to initialize the plugin.
46 *
47 * @return a Session Object
48 */
49 public Object getSessionContext();
50
51 /**
52 * This Methode returns a defined Model Implementation.
53 *
54 * @return Model
55 */
56 public Model getModel();
57
58 /**
59 * This Methode returns the defined DebugLevel.
60 *
61 * @return DebugLevel
62 */
63 public int getLogLevel();
64 }