Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbpm.process.core.impl
Class ProcessImpl

    java.lang.Object
      org.jbpm.process.core.impl.ProcessImpl

All Implemented Interfaces:
  Serializable, KnowledgeDefinition, Process, ResourcedObject, ContextContainer, ContextResolver

Direct Known Subclasses:
  WorkflowProcessImpl

    public class ProcessImpl

extends Object
implements Process, Serializable, ContextResolver

Default implementation of a Process

See Also:
  Serialized Form

Constructor Summary
`ProcessImpl()`

Method Summary
`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()` The unique id of the Process.
`List<String>` | `getImports()` Returns the imports of this RuleFlow process.
`Map<String,Object>` | `getMetaData()` Meta data associated with this Node.
`Object` | `getMetaData(String name)` Meta data associated with this Node.
`String` | `getName()` The name of the Process.
`String` | `getPackageName()` The package name of this process.
`Resource` | `getResource()`
`String` | `getType()` The type of process.
`String` | `getVersion()` The version of the Process.
`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(Resource resource)`
`void` | `setType(String type)` Sets the type of this process.
`void` | `setVersion(String version)` Sets the version of this process.

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ProcessImpl

    public ProcessImpl()

Method Detail

### setId

    public void setId(String id)

  Description copied from interface: `Process`
  Sets the id of this process. The id should uniquely identify this process.

  Parameters:
    `id` - the id of the process

### getId

    public String getId()

  Description copied from interface: `Process`
  The unique id of the Process.

  Specified by:
    `getId` in interface `Process`
  Returns:
    the id

### setName

    public void setName(String name)

  Description copied from interface: `Process`
  Sets the name of this process.

  Parameters:
    `name` - the name of this process

### getName

    public String getName()

  Description copied from interface: `Process`
  The name of the Process.

  Specified by:
    `getName` in interface `Process`
  Returns:
    the name

### setVersion

    public void setVersion(String version)

  Description copied from interface: `Process`
  Sets the version of this process.

  Parameters:
    `version` - the version of this process

### getVersion

    public String getVersion()

  Description copied from interface: `Process`
  The version of the Process. You may use your own versioning format (as the version is not interpreted by the engine).

  Specified by:
    `getVersion` in interface `Process`
  Returns:
    the version

### getType

    public String getType()

  Description copied from interface: `Process`
  The type of process. Different types of processes may exist. This defaults to "RuleFlow".

  Specified by:
    `getType` in interface `Process`
  Returns:
    the type

### setType

    public void setType(String type)

  Description copied from interface: `Process`
  Sets the type of this process.

  Parameters:
    `type` - the type of this process

### getPackageName

    public String getPackageName()

  Description copied from interface: `Process`
  The package name of this process.

  Specified by:
    `getPackageName` in interface `Process`
  Returns:
    the package name

### setPackageName

    public void setPackageName(String packageName)

  Description copied from interface: `Process`
  Sets the package name of this RuleFlow process

  Parameters:
    `packageName` - the package name of this RuleFlow process

### getContexts

    public List<Context> getContexts(String contextType)

  Specified by:
    `getContexts` in interface `ContextContainer`

### addContext

    public void addContext(Context context)

  Specified by:
    `addContext` in interface `ContextContainer`

### getContext

    public Context getContext(String contextType,
                              long id)

  Specified by:
    `getContext` in interface `ContextContainer`

### setDefaultContext

    public void setDefaultContext(Context context)

  Specified by:
    `setDefaultContext` in interface `ContextContainer`

### getDefaultContext

    public Context getDefaultContext(String contextType)

  Specified by:
    `getDefaultContext` in interface `ContextContainer`

### equals

    public boolean equals(Object o)

  Overrides:
    `equals` in class `Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

### resolveContext

    public Context resolveContext(String contextId,
                                  Object param)

  Specified by:
    `resolveContext` in interface `ContextResolver`

### getMetaData

    public Map<String,Object> getMetaData()

  Description copied from interface: `Process`
  Meta data associated with this Node.

  Specified by:
    `getMetaData` in interface `Process`

### setMetaData

    public void setMetaData(String name,
                            Object data)

### getMetaData

    public Object getMetaData(String name)

  Description copied from interface: `Process`
  Meta data associated with this Node.

  Specified by:
    `getMetaData` in interface `Process`

### getResource

    public Resource getResource()

  Specified by:
    `getResource` in interface `ResourcedObject`

### setResource

    public void setResource(Resource resource)

  Specified by:
    `setResource` in interface `ResourcedObject`

### getImports

    public List<String> getImports()

  Description copied from interface: `Process`
  Returns the imports of this RuleFlow process. They are defined as a List of fully qualified class names.

  Returns:
    the imports of this RuleFlow process

### setImports

    public void setImports(List<String> imports)

  Description copied from interface: `Process`
  Sets the imports of this RuleFlow process

  Parameters:
    `imports` - the imports as a List of fully qualified class names

### getFunctionImports

    public List<String> getFunctionImports()

  Description copied from interface: `Process`
  Returns the function imports of this RuleFlow process. They are defined as a List of fully qualified class names.

  Returns:
    the function imports of this RuleFlow process

### setFunctionImports

    public void setFunctionImports(List<String> functionImports)

  Description copied from interface: `Process`
  Sets the imports of this RuleFlow process

  Parameters:
    `functionImports` - the imports as a List of fully qualified class names

### getGlobals

    public Map<String,String> getGlobals()

  Description copied from interface: `Process`
  Returns the globals of this RuleFlow process. They are defined as a Map with the name as key and the type as value.

  Returns:
    the imports of this RuleFlow process

### setGlobals

    public void setGlobals(Map<String,String> globals)

  Description copied from interface: `Process`
  Sets the imports of this RuleFlow process

  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: `Process`
  Returns the names of the globals used in this RuleFlow process

  Returns:
    the names of the globals of this RuleFlow process

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.