Class DefaultProcessContextImpl<T>
java.lang.Object
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ActivityMessageDTO>protected Tprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the seed informationbooleanIs the process stoppedvoidsetActivityMessages(List<ActivityMessageDTO> activityMessages) voidsetSeedData(T seedObject) Provide seed information to this ProcessContext, usually provided at time of workflow kickoff by the containing workflow processor.booleanActivly informs the workflow process to stop processing no further activities will be executed
-
Field Details
-
seedData
-
stopEntireProcess
protected boolean stopEntireProcess -
activityMessages
-
-
Constructor Details
-
DefaultProcessContextImpl
public DefaultProcessContextImpl()
-
-
Method Details
-
stopProcess
public boolean stopProcess()Description copied from interface:ProcessContextActivly informs the workflow process to stop processing no further activities will be executed- Specified by:
stopProcessin interfaceProcessContext<T>- Returns:
- whether or not the stop process call was successful
-
isStopped
public boolean isStopped()Description copied from interface:ProcessContextIs the process stopped- Specified by:
isStoppedin interfaceProcessContext<T>- Returns:
- whether or not the process is stopped
-
getSeedData
Description copied from interface:ProcessContextReturns the seed information- Specified by:
getSeedDatain interfaceProcessContext<T>- Returns:
-
setSeedData
Description copied from interface:ProcessContextProvide seed information to this ProcessContext, usually provided at time of workflow kickoff by the containing workflow processor.- Specified by:
setSeedDatain interfaceProcessContext<T>- Parameters:
seedObject- - initial seed data for the workflow
-
getActivityMessages
- Specified by:
getActivityMessagesin interfaceActivityMessages
-
setActivityMessages
- Specified by:
setActivityMessagesin interfaceActivityMessages
-