com.filenet.rm.api.util

Class ThreadLocalForWorkflow

  1. java.lang.Object
  2. extended bycom.filenet.rm.api.util.ThreadLocalForWorkflow

  1. public class ThreadLocalForWorkflow
  2. extends java.lang.Object
This class is used to mark the call is from workflow in this thread or not. It is used by RecordInfoImpl.delete(boolean, String). CE 4.0 doesn't support transaction through WSI transport, but workflow calls are passed through WSI transport by PE Component Manager. if the call is from workflow, set Transaction parameter to false in startBatch(), otherwise, set Transaction parameter to false in startBatch().

Constructor Summary

Constructor and Description
ThreadLocalForWorkflow()

Method Summary

Modifier and Type Method and Description
  1. static
  2. java.lang.Object
isFromWorkflow()
Gets the flag that mark the call is from workflow in this thread
  1. static
  2. void
setFromWorkflow(java.lang.Object aFromWorkflow)
Sets the flag that mark the call is from workflow in this thread
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ThreadLocalForWorkflow

  1. public ThreadLocalForWorkflow()

Method Detail

isFromWorkflow

  1. public static java.lang.Object isFromWorkflow( )
Gets the flag that mark the call is from workflow in this thread
Returns:
Object -- should be Boolean, true: the call is from workflow; false or null: the call not from workflow.

setFromWorkflow

  1. public static void setFromWorkflow( java.lang.Object aFromWorkflow)
Sets the flag that mark the call is from workflow in this thread
Parameters:
aFromWorkflow - should be Boolean, true: the call is from workflow; false or null: the call not from workflow.