public interface RunStore
Modifier and Type | Method and Description |
---|---|
TavernaRun |
getRun(String uuid)
Obtain the named workflow run.
|
TavernaRun |
getRun(UsernamePrincipal user,
Policy p,
String uuid)
Obtain the workflow run for a given user and name.
|
Map<String,TavernaRun> |
listRuns(UsernamePrincipal user,
Policy p)
List the runs that a particular user may access.
|
String |
registerRun(TavernaRun run)
Adds a workflow instance run to the store.
|
void |
unregisterRun(String uuid)
Removes a run from the store.
|
TavernaRun getRun(UsernamePrincipal user, Policy p, String uuid) throws UnknownRunException
user
- Who wants to do the lookup.p
- The general policy system context.uuid
- The handle for the run.UnknownRunException
- If the lookup fails (either because it does not exist or
because it is not permitted for the user by the policy).TavernaRun getRun(String uuid) throws UnknownRunException
uuid
- The handle for the run.UnknownRunException
- If the lookup fails (either because it does not exist or
because it is not permitted for the user by the policy).Map<String,TavernaRun> listRuns(UsernamePrincipal user, Policy p)
user
- Who wants to do the lookup, or null
if it is
being done "by the system" when the full mapping should be
returned.p
- The general policy system context.String registerRun(TavernaRun run)
run
- The run itself.void unregisterRun(String uuid)
uuid
- The name of the run.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.