public class BatchScript extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ID
A configuration key name of IDs.
|
static String |
KEY_VERIFICATION_CODE
A configuration key name of verification code.
|
static String |
KEY_VERSION
A configuration key name of script version.
|
static String |
VERSION
Current version.
|
| Constructor and Description |
|---|
BatchScript(String id,
Collection<FlowScript> flows)
Creates a new instance.
|
BatchScript(String batchId,
String buildId,
Collection<FlowScript> flows)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
FlowScript |
findFlow(String flowId)
Returns a
FlowScript which has the specified flow ID. |
List<FlowScript> |
getAllFlows()
Returns all
FlowScripts defined in this batch. |
String |
getBuildId()
Returns the build ID of this batch.
|
String |
getId()
Returns the ID of this batch.
|
static BatchScript |
load(Properties properties)
Loads a
BatchScript. |
public static final String KEY_ID
public static final String KEY_VERSION
public static final String KEY_VERIFICATION_CODE
public static final String VERSION
public BatchScript(String id, Collection<FlowScript> flows)
id - ID of this batchflows - member flowsIllegalArgumentException - if some parameters were nullpublic BatchScript(String batchId, String buildId, Collection<FlowScript> flows)
batchId - ID of this batchbuildId - the application verification code, or null if not definedflows - member flowsIllegalArgumentException - if some parameters were nullpublic String getId()
public String getBuildId()
null if not definedpublic FlowScript findFlow(String flowId)
FlowScript which has the specified flow ID.flowId - target flow IDFlowScript, or null if not foundIllegalArgumentException - if some parameters were nullpublic List<FlowScript> getAllFlows()
FlowScripts defined in this batch.FlowScriptspublic static BatchScript load(Properties properties)
BatchScript.properties - source propertiesIllegalArgumentException - if script is invalid, or some parameters were nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.