public class ProcessImpl extends Object implements Process, Serializable, ContextResolver
Constructor and Description |
---|
ProcessImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addContext(Context context) |
boolean |
equals(Object o) |
Context |
getContext(String contextType,
long id) |
List<Context> |
getContexts(String contextType) |
Context |
getDefaultContext(String contextType) |
List<String> |
getFunctionImports()
Returns the function imports of this RuleFlow process.
|
String[] |
getGlobalNames()
Returns the names of the globals used in this RuleFlow process
|
Map<String,String> |
getGlobals()
Returns the globals of this RuleFlow process.
|
String |
getId() |
List<String> |
getImports()
Returns the imports of this RuleFlow process.
|
org.kie.api.definition.KieDefinition.KnowledgeType |
getKnowledgeType() |
Map<String,Object> |
getMetaData() |
Object |
getMetaData(String name) |
String |
getName() |
String |
getNamespace() |
String |
getPackageName() |
org.kie.api.io.Resource |
getResource() |
Map<String,Object> |
getRuntimeMetaData() |
String |
getType() |
String |
getVersion() |
int |
hashCode() |
Context |
resolveContext(String contextId,
Object param) |
void |
setDefaultContext(Context context) |
void |
setFunctionImports(List<String> functionImports)
Sets the imports of this RuleFlow process
|
void |
setGlobals(Map<String,String> globals)
Sets the imports of this RuleFlow process
|
void |
setId(String id)
Sets the id of this process.
|
void |
setImports(List<String> imports)
Sets the imports of this RuleFlow process
|
void |
setMetaData(String name,
Object data) |
void |
setName(String name)
Sets the name of this process.
|
void |
setPackageName(String packageName)
Sets the package name of this RuleFlow process
|
void |
setResource(org.kie.api.io.Resource resource) |
void |
setRuntimeMetaData(Map<String,Object> runtimeMetaData) |
void |
setType(String type)
Sets the type of this process.
|
void |
setVersion(String version)
Sets the version of this process.
|
public void setId(String id)
Process
id
- the id of the processpublic String getId()
getId
in interface org.kie.api.definition.KieDefinition
getId
in interface org.kie.api.definition.process.Process
public void setName(String name)
Process
name
- the name of this processpublic String getName()
getName
in interface org.kie.api.definition.process.Process
public void setVersion(String version)
Process
version
- the version of this processpublic String getVersion()
getVersion
in interface org.kie.api.definition.process.Process
public String getType()
getType
in interface org.kie.api.definition.process.Process
public void setType(String type)
Process
type
- the type of this processpublic String getPackageName()
getPackageName
in interface org.kie.api.definition.process.Process
public void setPackageName(String packageName)
Process
packageName
- the package name of this RuleFlow processpublic List<Context> getContexts(String contextType)
getContexts
in interface ContextContainer
public void addContext(Context context)
addContext
in interface ContextContainer
public Context getContext(String contextType, long id)
getContext
in interface ContextContainer
public void setDefaultContext(Context context)
setDefaultContext
in interface ContextContainer
public Context getDefaultContext(String contextType)
getDefaultContext
in interface ContextContainer
public Context resolveContext(String contextId, Object param)
resolveContext
in interface ContextResolver
public Map<String,Object> getMetaData()
getMetaData
in interface org.kie.api.definition.process.Process
public org.kie.api.io.Resource getResource()
getResource
in interface org.kie.api.definition.process.Process
public void setResource(org.kie.api.io.Resource resource)
setResource
in interface org.kie.api.definition.process.Process
public List<String> getImports()
Process
public void setImports(List<String> imports)
Process
imports
- the imports as a List of fully qualified class namespublic List<String> getFunctionImports()
Process
public void setFunctionImports(List<String> functionImports)
Process
functionImports
- the imports as a List of fully qualified class namespublic Map<String,String> getGlobals()
Process
public void setGlobals(Map<String,String> globals)
Process
globals
- the globals as a Map with the name as key and the type as valuepublic String[] getGlobalNames()
Process
public org.kie.api.definition.KieDefinition.KnowledgeType getKnowledgeType()
getKnowledgeType
in interface org.kie.api.definition.KieDefinition
public String getNamespace()
getNamespace
in interface org.kie.api.definition.KieDefinition
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.