Package org.jbpm.process.core.impl
Class ProcessImpl
- java.lang.Object
-
- org.jbpm.process.core.impl.ProcessImpl
-
- All Implemented Interfaces:
Serializable,ContextContainer,ContextResolver,Process,org.kie.api.definition.KieDefinition,org.kie.api.definition.process.Process
- Direct Known Subclasses:
WorkflowProcessImpl
public class ProcessImpl extends Object implements Process, Serializable, ContextResolver
Default implementation of a Process- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContext(Context context)booleanequals(Object o)ContextgetContext(String contextType, long id)List<Context>getContexts(String contextType)ContextgetDefaultContext(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 processMap<String,String>getGlobals()Returns the globals of this RuleFlow process.StringgetId()Set<String>getImports()Returns the imports of this RuleFlow process.org.kie.api.definition.KieDefinition.KnowledgeTypegetKnowledgeType()Map<String,Object>getMetaData()ObjectgetMetaData(String name)StringgetName()StringgetNamespace()StringgetPackageName()org.kie.api.io.ResourcegetResource()Map<String,Object>getRuntimeMetaData()StringgetType()StringgetVersion()inthashCode()ContextresolveContext(String contextId, Object param)voidsetDefaultContext(Context context)voidsetFunctionImports(List<String> functionImports)Sets the imports of this RuleFlow processvoidsetGlobals(Map<String,String> globals)Sets the imports of this RuleFlow processvoidsetId(String id)Sets the id of this process.voidsetImports(Set<String> imports)Sets the imports of this RuleFlow processvoidsetMetaData(String name, Object data)voidsetName(String name)Sets the name of this process.voidsetPackageName(String packageName)Sets the package name of this RuleFlow processvoidsetResource(org.kie.api.io.Resource resource)voidsetRuntimeMetaData(Map<String,Object> runtimeMetaData)voidsetType(String type)Sets the type of this process.voidsetVersion(String version)Sets the version of this process.
-
-
-
Method Detail
-
setId
public void setId(String id)
Description copied from interface:ProcessSets the id of this process. The id should uniquely identify this process.
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.kie.api.definition.KieDefinition- Specified by:
getIdin interfaceorg.kie.api.definition.process.Process
-
setName
public void setName(String name)
Description copied from interface:ProcessSets the name of this process.
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.kie.api.definition.process.Process
-
setVersion
public void setVersion(String version)
Description copied from interface:ProcessSets the version of this process.- Specified by:
setVersionin interfaceProcess- Parameters:
version- the version of this process
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceorg.kie.api.definition.process.Process
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.kie.api.definition.process.Process
-
setType
public void setType(String type)
Description copied from interface:ProcessSets the type of this process.
-
getPackageName
public String getPackageName()
- Specified by:
getPackageNamein interfaceorg.kie.api.definition.process.Process
-
setPackageName
public void setPackageName(String packageName)
Description copied from interface:ProcessSets the package name of this RuleFlow process- Specified by:
setPackageNamein interfaceProcess- Parameters:
packageName- the package name of this RuleFlow process
-
getContexts
public List<Context> getContexts(String contextType)
- Specified by:
getContextsin interfaceContextContainer
-
addContext
public void addContext(Context context)
- Specified by:
addContextin interfaceContextContainer
-
getContext
public Context getContext(String contextType, long id)
- Specified by:
getContextin interfaceContextContainer
-
setDefaultContext
public void setDefaultContext(Context context)
- Specified by:
setDefaultContextin interfaceContextContainer
-
getDefaultContext
public Context getDefaultContext(String contextType)
- Specified by:
getDefaultContextin interfaceContextContainer
-
resolveContext
public Context resolveContext(String contextId, Object param)
- Specified by:
resolveContextin interfaceContextResolver
-
getMetaData
public Map<String,Object> getMetaData()
- Specified by:
getMetaDatain interfaceorg.kie.api.definition.process.Process
-
setMetaData
public void setMetaData(String name, Object data)
- Specified by:
setMetaDatain interfaceProcess
-
getResource
public org.kie.api.io.Resource getResource()
- Specified by:
getResourcein interfaceorg.kie.api.definition.process.Process
-
setResource
public void setResource(org.kie.api.io.Resource resource)
- Specified by:
setResourcein interfaceorg.kie.api.definition.process.Process
-
getImports
public Set<String> getImports()
Description copied from interface:ProcessReturns the imports of this RuleFlow process. They are defined as a List of fully qualified class names.- Specified by:
getImportsin interfaceProcess- Returns:
- the imports of this RuleFlow process
-
setImports
public void setImports(Set<String> imports)
Description copied from interface:ProcessSets the imports of this RuleFlow process- Specified by:
setImportsin interfaceProcess- Parameters:
imports- the imports as a List of fully qualified class names
-
getFunctionImports
public List<String> getFunctionImports()
Description copied from interface:ProcessReturns the function imports of this RuleFlow process. They are defined as a List of fully qualified class names.- Specified by:
getFunctionImportsin interfaceProcess- Returns:
- the function imports of this RuleFlow process
-
setFunctionImports
public void setFunctionImports(List<String> functionImports)
Description copied from interface:ProcessSets the imports of this RuleFlow process- Specified by:
setFunctionImportsin interfaceProcess- Parameters:
functionImports- the imports as a List of fully qualified class names
-
getGlobals
public Map<String,String> getGlobals()
Description copied from interface:ProcessReturns the globals of this RuleFlow process. They are defined as a Map with the name as key and the type as value.- Specified by:
getGlobalsin interfaceProcess- Returns:
- the imports of this RuleFlow process
-
setGlobals
public void setGlobals(Map<String,String> globals)
Description copied from interface:ProcessSets the imports of this RuleFlow process- Specified by:
setGlobalsin interfaceProcess- Parameters:
globals- the globals as a Map with the name as key and the type as value
-
getGlobalNames
public String[] getGlobalNames()
Description copied from interface:ProcessReturns the names of the globals used in this RuleFlow process- Specified by:
getGlobalNamesin interfaceProcess- Returns:
- the names of the globals of this RuleFlow process
-
getKnowledgeType
public org.kie.api.definition.KieDefinition.KnowledgeType getKnowledgeType()
- Specified by:
getKnowledgeTypein interfaceorg.kie.api.definition.KieDefinition
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceorg.kie.api.definition.KieDefinition
-
-