KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > RegisterRemote


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.workflow;
6
7 import com.opensymphony.workflow.spi.WorkflowEntry;
8
9 import java.rmi.Remote JavaDoc;
10 import java.rmi.RemoteException JavaDoc;
11
12 import java.util.Map JavaDoc;
13
14
15 /**
16  * A remote register interface.
17  * This interface is used when the register type is remote-ejb. The stateless session
18  * bean would then implement this interface in order for a register to be successfully registered.
19  *
20  * @author <a HREF="mailto:hani@formicary.net">Hani Suleiman</a>
21  * @version $Revision: 1.2 $
22  */

23 public interface RegisterRemote extends Remote JavaDoc {
24     //~ Methods ////////////////////////////////////////////////////////////////
25

26     /**
27      * Register a variable within a particular workflow
28      *
29      * @param context The current workflow context
30      * @param entry The workflow entry. Note that this might be null, for example in a pre function
31      * before the workflow has been initialised
32      * @param args Map of arguments as set in the workflow descriptor
33      * @return An object which is now exposed as a register to the rest of the workflow
34      * @throws RemoteException
35      */

36     public Object JavaDoc registerVariable(WorkflowContext context, WorkflowEntry entry, Map JavaDoc args) throws RemoteException JavaDoc;
37 }
38
Popular Tags