public class Workflow<T> extends Object
Workflow class.
| Constructor and Description |
|---|
Workflow(T bean,
WorkflowDefinition<T> workflowDefinition)
Creates a workflow for the given bean
|
| Modifier and Type | Method and Description |
|---|---|
T |
getBean()
Returns the bean of that workflow
|
State<T> |
getCurrentState()
Returns the current state
|
List<? extends Transition<T>> |
getPossibleTransition()
Returns the possible transitions.
|
List<? extends TransitionDefinition<T>> |
getPossibleTransitionDefinitions()
Deprecated.
|
WorkflowDefinition<T> |
getWorkflowDefinition()
Returns the workflow definition this workflow is based on
|
public Workflow(@Nonnull T bean, @Nonnull WorkflowDefinition<T> workflowDefinition)
bean - the bean the workflow is created forworkflowDefinition - the definition@Nonnull public WorkflowDefinition<T> getWorkflowDefinition()
@Nonnull public State<T> getCurrentState()
@Nonnull public List<? extends Transition<T>> getPossibleTransition()
@Nonnull @Deprecated public List<? extends TransitionDefinition<T>> getPossibleTransitionDefinitions()
Copyright © 2007–2017 cedarsoft GmbH. All rights reserved.