shocks.framework.workflow.sequence
Interface SequenceRepository

All Known Implementing Classes:
CentralSequenceRepository, SequenceRepositoryProxy

public interface SequenceRepository


Method Summary
 void addWorkflow(Workflow component)
          Returns the current operating version of a workflow sequence.
 Workflow leaseWorkflow(DataSource metadata)
          Leases a workflow component from the instance pool.
 void release(Workflow component)
          Releases a leased workflow component back into the instance pool.
 

Method Detail

leaseWorkflow

public Workflow leaseWorkflow(DataSource metadata)

Leases a workflow component from the instance pool. This component should be released back into the instance pool once it is no longer needed.

Parameters:
metadata -
Returns:
Workflow representing the coming sequence of events

release

public void release(Workflow component)

Releases a leased workflow component back into the instance pool. The method will sort the workflow component by name and version.

Parameters:
component -

addWorkflow

public void addWorkflow(Workflow component)

Returns the current operating version of a workflow sequence. Each workflow sequence is identified by a metadata component whose values amount to a composite key.

Parameters:
component -