public final class VariableInitializator extends Object
Constructor and Description |
---|
VariableInitializator(ModelProvider modelProvider)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
init(Collection<ModuleInstance> moduleInstances)
Initializes module variables in the given set of module instances in the reverse order.
|
void |
init(Context context,
boolean variables,
String origin)
Initializes variables with their initial values in given context.
|
void |
init(ModelInstance modelInstance)
Initializes variables.
|
public VariableInitializator(ModelProvider modelProvider)
modelProvider
- NullPointerException
- if modelProviderService
is nullpublic void init(Context context, boolean variables, String origin) throws ErrorException
This code is used for initialization of proper variables like module variables, process (subprocess) variables, but also for task parameters, activity iterators, document parameters etc. There is a difference, proper variables can use preceding variables in its initial value.
context
- variables
- a flag indicating that we initialize proper variablesorigin
- ErrorException
NullPointerException
- if contextInstance
is null.public void init(ModelInstance modelInstance) throws ErrorException
modelInstance
- ErrorException
NullPointerException
- if modelInstance
is null.public void init(Collection<ModuleInstance> moduleInstances) throws ErrorException
moduleInstances
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.