org.imixs.workflow
Interface Plugin

All Known Implementing Classes:
AbstractPlugin, AccessPlugin, ApplicationPlugin, HistoryPlugin, LogPlugin, OwnerPlugin, ResultPlugin, StatisticPlugin

public interface Plugin

A Plugin defines the interface between the WorkflowKernel and the underlying softwaresystem in which the plugin runns. Every Plugin have to be registerd to the workflowkernel by the workflowmanager. In this way the WorkflowManager can control the functionallity of a single workflowactivity by defining the used plugin-moduls.

Version:
1.0
Author:
Ralph Soika
See Also:
WorkflowKernel

Field Summary
static int PLUGIN_ERROR
           
static int PLUGIN_OK
           
static int PLUGIN_WARNING
           
 
Method Summary
 void close(int status)
          This CallBack Mathode is uses to giv the plugin the chance to close plubin spcific data
 void init(WorkflowContext actx)
          The init Methode is usesd to initialize the plugin.
 int run(ItemCollection documentContext, ItemCollection documentActivity)
           
 

Field Detail

PLUGIN_ERROR

static final int PLUGIN_ERROR
See Also:
Constant Field Values

PLUGIN_WARNING

static final int PLUGIN_WARNING
See Also:
Constant Field Values

PLUGIN_OK

static final int PLUGIN_OK
See Also:
Constant Field Values
Method Detail

init

void init(WorkflowContext actx)
          throws java.lang.Exception
The init Methode is usesd to initialize the plugin.

Parameters:
actx - defines the context in which the plugin runs a Plugin can use this context to get information about the enviroment
Throws:
java.lang.Exception

run

int run(ItemCollection documentContext,
        ItemCollection documentActivity)
        throws java.lang.Exception
Parameters:
documentContext - defines the document to be processed
documentActivity - defines the activity document which contains the workflowprocessing instructions
Returns:
the current status for this plugin
Throws:
java.lang.Exception

close

void close(int status)
           throws java.lang.Exception
This CallBack Mathode is uses to giv the plugin the chance to close plubin spcific data

Parameters:
status - gives the plugin information about the current status. this parameter is deliverd by the workflowKernel.
Throws:
java.lang.Exception


Copyright © 2006-2010 Imixs Software Solutions GmbH. All Rights Reserved.