nl.gx.webmanager.cms.workflow
Interface WorkflowModelInstance

All Superinterfaces:
Wrapper

public interface WorkflowModelInstance
extends Wrapper

This interface represents a Workflow model instance. A Workflow model instance is based on a Workflow model but contains Workflow activity instances instead of Workflow activities. Furthermore the Workflow model instance contains a state itself, which represents the state of the Workflow model as a whole rather then the state of one particular activity instance.

Author:
ivol

Method Summary
 WorkflowActivityInstance[] getActivityInstances()
          Return the Workflow activity instances of this Workflow model instance
 WorkflowActivityInstance getCurrentActivityInstance()
          Return the activity that is currently active.
 WorkflowModelState getState()
          Return the state of this Workflow model instance as a whole
 void setActivityInstances(WorkflowActivityInstance[] instances)
          Set the Workflow activity instances of this Workflow model instance
 void setState(WorkflowModelState state)
          Sets the state of this Workflow model instance as a whole
 
Methods inherited from interface nl.gx.webmanager.wrapper.Wrapper
getId, getUUID, setId, setUUID
 

Method Detail

getState

WorkflowModelState getState()
Return the state of this Workflow model instance as a whole

Returns:
the state of this Workflow model

setState

void setState(WorkflowModelState state)
Sets the state of this Workflow model instance as a whole

Parameters:
state - the state of this Workflow model

getActivityInstances

WorkflowActivityInstance[] getActivityInstances()
Return the Workflow activity instances of this Workflow model instance

Returns:
the Workflow activity instances of this Workflow model instance

setActivityInstances

void setActivityInstances(WorkflowActivityInstance[] instances)
Set the Workflow activity instances of this Workflow model instance

Parameters:
instances - the Workflow activity instances of this Workflow model instance

getCurrentActivityInstance

WorkflowActivityInstance getCurrentActivityInstance()
Return the activity that is currently active. To be precise; the activity that is currently in the "active" state which is true for exactly one activity instance in the Workflow model instance

Returns:
the activity that is currently active


Copyright © 2007-2011 GX Software BV. All Rights Reserved.