com.filenet.rm.api.util

Class ThreadLocalForWorkflow

  • java.lang.Object
    • com.filenet.rm.api.util.ThreadLocalForWorkflow


  • public class ThreadLocalForWorkflow
    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().
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.Object isFromWorkflow()
      Gets the flag that mark the call is from workflow in this thread
      static 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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadLocalForWorkflow

        public ThreadLocalForWorkflow()
    • Method Detail

      • isFromWorkflow

        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

        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.

© Copyright IBM Corp. 2003, 2013. All Rights Reserved.