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
Default implementation of a Process
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.kie.api.definition.KieDefinition
org.kie.api.definition.KieDefinition.KnowledgeType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContext(Context context) voidaddFunctionImports(Collection<String> functionImports) voidaddImports(Collection<String> imports) booleangetContext(String contextType, long id) getContexts(String contextType) getDefaultContext(String contextType) Returns the function imports of this RuleFlow process.String[]Returns the names of the globals used in this RuleFlow processReturns the globals of this RuleFlow process.getId()Returns the imports of this RuleFlow process.org.kie.api.definition.KieDefinition.KnowledgeTypegetMetaData(String name) getName()org.kie.api.io.ResourcegetType()inthashCode()resolveContext(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 processvoidSets the id of this process.voidsetImports(Set<String> imports) Sets the imports of this RuleFlow processvoidsetMetaData(String name, Object data) voidSets 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) voidSets the type of this process.voidsetVersion(String version) Sets the version of this process.voidsetVisibility(String visibility)
-
Constructor Details
-
ProcessImpl
public ProcessImpl()
-
-
Method Details
-
setId
Description copied from interface:ProcessSets the id of this process. The id should uniquely identify this process. -
getId
- Specified by:
getIdin interfaceorg.kie.api.definition.KieDefinition- Specified by:
getIdin interfaceorg.kie.api.definition.process.Process
-
setName
Description copied from interface:ProcessSets the name of this process. -
getName
- Specified by:
getNamein interfaceorg.kie.api.definition.process.Process
-
setVersion
Description copied from interface:ProcessSets the version of this process.- Specified by:
setVersionin interfaceProcess- Parameters:
version- the version of this process
-
getVersion
- Specified by:
getVersionin interfaceorg.kie.api.definition.process.Process
-
getType
- Specified by:
getTypein interfaceorg.kie.api.definition.process.Process
-
setType
Description copied from interface:ProcessSets the type of this process. -
getPackageName
- Specified by:
getPackageNamein interfaceorg.kie.api.definition.process.Process
-
setPackageName
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
-
getVisibility
-
setVisibility
-
getContexts
- Specified by:
getContextsin interfaceContextContainer
-
addContext
- Specified by:
addContextin interfaceContextContainer
-
getContext
- Specified by:
getContextin interfaceContextContainer
-
setDefaultContext
- Specified by:
setDefaultContextin interfaceContextContainer
-
getDefaultContext
- Specified by:
getDefaultContextin interfaceContextContainer
-
equals
-
hashCode
public int hashCode() -
resolveContext
- Specified by:
resolveContextin interfaceContextResolver
-
getMetaData
- Specified by:
getMetaDatain interfaceorg.kie.api.definition.process.Process
-
setMetaData
- Specified by:
setMetaDatain interfaceProcess
-
getMetaData
-
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
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
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
-
addImports
-
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
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
-
addFunctionImports
-
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
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
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
- Specified by:
getNamespacein interfaceorg.kie.api.definition.KieDefinition
-
getRuntimeMetaData
-
setRuntimeMetaData
-