Class WorkflowConfiguration
java.lang.Object
com.broadleafcommerce.orchestration.config.WorkflowConfiguration
@ConfigurationProperties(prefix="broadleaf.workflow.client")
public class WorkflowConfiguration
extends Object
Spring environment structure for declaring the values assigned for
SimpleWorkflow.getSteps()
. Providing step configuration in this manner can allow for
dynamic updates of workflow configuration without requiring a deployment of the application when
configuration is deployed via the config server.
Sample workflow implementation using this configuration, rather than explicit Java entries for steps:
public class SampleWorkflow extends AbstractSimpleWorkflowExecution {
public SampleWorkflow(WorkflowConfiguration workflowConfiguration) {
super(workflowConfiguration);
}
@Override
public String getName() {
return "MyWorkflow";
}
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyWorkflow
(String workflowName) protected boolean
boolean
getFlows()
Map of configuration for workflows by workflow namegetSteps()
Map of steps to perform by workflow nameint
hashCode()
void
setFlows
(Map<String, WorkflowConfig> flows) Map of configuration for workflows by workflow namevoid
Map of steps to perform by workflow nametoString()
-
Constructor Details
-
WorkflowConfiguration
public WorkflowConfiguration()
-
-
Method Details
-
byWorkflow
-
getFlows
Map of configuration for workflows by workflow name -
getSteps
Map of steps to perform by workflow name -
setFlows
Map of configuration for workflows by workflow name -
setSteps
Map of steps to perform by workflow name -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-