01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.workflow;
06:
07: import com.opensymphony.module.propertyset.PropertySet;
08:
09: import com.opensymphony.workflow.spi.WorkflowEntry;
10:
11: import java.rmi.Remote;
12: import java.rmi.RemoteException;
13:
14: import java.util.Map;
15:
16: /**
17: * A remote register interface.
18: * This interface is used when the register type is remote-ejb. The stateless session
19: * bean would then implement this interface in order for a register to be successfully registered.
20: *
21: * @author <a href="mailto:hani@formicary.net">Hani Suleiman</a>
22: * @version $Revision: 1.3 $
23: */
24: public interface RegisterRemote extends Remote {
25: //~ Methods ////////////////////////////////////////////////////////////////
26:
27: /**
28: * Register a variable within a particular workflow
29: *
30: * @param context The current workflow context
31: * @param entry The workflow entry. Note that this might be null, for example in a pre function
32: * before the workflow has been initialised
33: * @param args Map of arguments as set in the workflow descriptor
34: * @return An object which is now exposed as a register to the rest of the workflow
35: * @throws RemoteException
36: */
37: public Object registerVariable(WorkflowContext context,
38: WorkflowEntry entry, Map args, PropertySet ps)
39: throws RemoteException;
40: }
|