org.broadleafcommerce.core.workflow
Class DefaultProcessContextImpl<T>

java.lang.Object
  extended by org.broadleafcommerce.core.workflow.DefaultProcessContextImpl<T>
Type Parameters:
T - SeedData
All Implemented Interfaces:
Serializable, ActivityMessages, ProcessContext<T>

public class DefaultProcessContextImpl<T>
extends Object
implements ProcessContext<T>, ActivityMessages

Default ProcessContext implementation

Author:
"Priyesh Patel"
See Also:
Serialized Form

Field Summary
protected  List<ActivityMessageDTO> activityMessages
           
protected  T seedData
           
static long serialVersionUID
           
protected  boolean stopEntireProcess
           
 
Constructor Summary
DefaultProcessContextImpl()
           
 
Method Summary
 List<ActivityMessageDTO> getActivityMessages()
           
 T getSeedData()
          Returns the seed information
 boolean isStopped()
          Is the process stopped
 void setActivityMessages(List<ActivityMessageDTO> activityMessages)
           
 void setSeedData(T seedObject)
          Provide seed information to this ProcessContext, usually provided at time of workflow kickoff by the containing workflow processor.
 boolean stopProcess()
          Activly informs the workflow process to stop processing no further activities will be executed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

seedData

protected T seedData

stopEntireProcess

protected boolean stopEntireProcess

activityMessages

protected List<ActivityMessageDTO> activityMessages
Constructor Detail

DefaultProcessContextImpl

public DefaultProcessContextImpl()
Method Detail

stopProcess

public boolean stopProcess()
Description copied from interface: ProcessContext
Activly informs the workflow process to stop processing no further activities will be executed

Specified by:
stopProcess in interface ProcessContext<T>
Returns:
whether or not the stop process call was successful

isStopped

public boolean isStopped()
Description copied from interface: ProcessContext
Is the process stopped

Specified by:
isStopped in interface ProcessContext<T>
Returns:
whether or not the process is stopped

getSeedData

public T getSeedData()
Description copied from interface: ProcessContext
Returns the seed information

Specified by:
getSeedData in interface ProcessContext<T>
Returns:

setSeedData

public void setSeedData(T seedObject)
Description copied from interface: ProcessContext
Provide seed information to this ProcessContext, usually provided at time of workflow kickoff by the containing workflow processor.

Specified by:
setSeedData in interface ProcessContext<T>
Parameters:
seedObject - - initial seed data for the workflow

getActivityMessages

public List<ActivityMessageDTO> getActivityMessages()
Specified by:
getActivityMessages in interface ActivityMessages

setActivityMessages

public void setActivityMessages(List<ActivityMessageDTO> activityMessages)
Specified by:
setActivityMessages in interface ActivityMessages


Copyright © 2013. All Rights Reserved.