KIE Internal 6.0.1.Final

org.kie.internal.runtime.manager.context
Class ProcessInstanceIdContext

java.lang.Object
  extended by org.kie.internal.runtime.manager.context.ProcessInstanceIdContext
All Implemented Interfaces:
org.kie.api.runtime.manager.Context<Long>

public class ProcessInstanceIdContext
extends Object
implements org.kie.api.runtime.manager.Context<Long>

Process instance id aware implementation of the Context interface. It's main responsibility is to be the data holder between caller and runtime manager to obtain proper instances of RuntimeEngine.
Used by strategy:

To obtain instances of this context use one of the following static methods:


Constructor Summary
ProcessInstanceIdContext(Long processInstanceId)
           
 
Method Summary
static ProcessInstanceIdContext get()
          Returns new instance of ProcessInstanceIdContext without process instance id.
static ProcessInstanceIdContext get(Long processInstanceId)
          Returns new instance of ProcessInstanceIdContext with id of already existing process instance
 Long getContextId()
           
 void setContextId(long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessInstanceIdContext

public ProcessInstanceIdContext(Long processInstanceId)
Method Detail

getContextId

public Long getContextId()
Specified by:
getContextId in interface org.kie.api.runtime.manager.Context<Long>

setContextId

public void setContextId(long id)

get

public static ProcessInstanceIdContext get()
Returns new instance of ProcessInstanceIdContext without process instance id. Used for starting new instances of the process.

Returns:

get

public static ProcessInstanceIdContext get(Long processInstanceId)
Returns new instance of ProcessInstanceIdContext with id of already existing process instance

Parameters:
processInstanceId - actual identifier of process instance
Returns:

KIE Internal 6.0.1.Final

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