Pārlūkot izejas kodu

HPCC-8882 Move workflow.cpp from eclrtl.so to workunit.so

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 12 gadi atpakaļ
vecāks
revīzija
841e40710b

+ 2 - 0
common/workunit/CMakeLists.txt

@@ -28,11 +28,13 @@ set (    SRCS
          workunit.cpp 
          workunit.cpp 
          wujobq.cpp
          wujobq.cpp
          package.cpp
          package.cpp
+         workflow.cpp
                  
                  
          workunit.hpp 
          workunit.hpp 
          wuerror.hpp
          wuerror.hpp
          wujobq.hpp
          wujobq.hpp
          package.h
          package.h
+         workflow.hpp
          pkgimpl.hpp
          pkgimpl.hpp
     )
     )
 
 

+ 3 - 3
rtl/eclrtl/workflow.cpp

@@ -999,17 +999,17 @@ const char * WorkflowMachine::queryEventExtra() const
 }
 }
 
 
 
 
-ECLRTL_API IWorkflowItemIterator *createWorkflowItemIterator(IPropertyTree *p)
+WORKUNIT_API IWorkflowItemIterator *createWorkflowItemIterator(IPropertyTree *p)
 {
 {
     return new CWorkflowItemIterator(p);
     return new CWorkflowItemIterator(p);
 }
 }
 
 
-ECLRTL_API IWorkflowItemArray *createWorkflowItemArray(unsigned size)
+WORKUNIT_API IWorkflowItemArray *createWorkflowItemArray(unsigned size)
 {
 {
     return new CCloneWorkflowItemArray(size);
     return new CCloneWorkflowItemArray(size);
 }
 }
 
 
-ECLRTL_API IWorkflowItem *createWorkflowItem(IPropertyTree * ptree, unsigned wfid, WFType type, WFMode mode, unsigned success, unsigned failure, unsigned recovery, unsigned retriesAllowed, unsigned contingencyFor)
+WORKUNIT_API IWorkflowItem *createWorkflowItem(IPropertyTree * ptree, unsigned wfid, WFType type, WFMode mode, unsigned success, unsigned failure, unsigned recovery, unsigned retriesAllowed, unsigned contingencyFor)
 {
 {
     return new CWorkflowItem(ptree, wfid, type, mode, success, failure, recovery, retriesAllowed, contingencyFor);
     return new CWorkflowItem(ptree, wfid, type, mode, success, failure, recovery, retriesAllowed, contingencyFor);
 }
 }

+ 8 - 8
rtl/eclrtl/workflow.hpp

@@ -18,12 +18,12 @@
 #ifndef workflow_incl
 #ifndef workflow_incl
 #define workflow_incl
 #define workflow_incl
 
 
-#include "eclrtl.hpp"
+#include "thorhelper.hpp"
 #include "workunit.hpp"
 #include "workunit.hpp"
 #include "jlog.hpp"
 #include "jlog.hpp"
 #include "eclhelper.hpp"
 #include "eclhelper.hpp"
 
 
-class ECLRTL_API WorkflowException : public CInterface, public IException
+class WORKUNIT_API WorkflowException : public CInterface, public IException
 {
 {
 public:
 public:
     typedef enum { SYSTEM, USER, ABORT } Type;
     typedef enum { SYSTEM, USER, ABORT } Type;
@@ -63,7 +63,7 @@ private:
   *  - Support once, stored, persist workflow items.
   *  - Support once, stored, persist workflow items.
   *
   *
   */
   */
-class ECLRTL_API WorkflowMachine : public CInterface
+class WORKUNIT_API WorkflowMachine : public CInterface
 {
 {
 public:
 public:
     WorkflowMachine();
     WorkflowMachine();
@@ -124,13 +124,13 @@ protected:
     unsigned condition;
     unsigned condition;
 };
 };
 
 
-extern ECLRTL_API IWorkflowItemIterator *createWorkflowItemIterator(IPropertyTree *p);
-extern ECLRTL_API IWorkflowItemArray *createWorkflowItemArray(unsigned size);
-extern ECLRTL_API IWorkflowItem *createWorkflowItem(IPropertyTree * ptree, unsigned wfid, WFType type, WFMode mode, unsigned success, unsigned failure, unsigned recovery, unsigned retriesAllowed, unsigned contingencyFor);
-extern ECLRTL_API IWorkflowItemIterator *createWorkflowItemIterator(IPropertyTree * ptree);
+extern WORKUNIT_API IWorkflowItemIterator *createWorkflowItemIterator(IPropertyTree *p);
+extern WORKUNIT_API IWorkflowItemArray *createWorkflowItemArray(unsigned size);
+extern WORKUNIT_API IWorkflowItem *createWorkflowItem(IPropertyTree * ptree, unsigned wfid, WFType type, WFMode mode, unsigned success, unsigned failure, unsigned recovery, unsigned retriesAllowed, unsigned contingencyFor);
+extern WORKUNIT_API IWorkflowItemIterator *createWorkflowItemIterator(IPropertyTree * ptree);
 
 
 #ifdef TRACE_WORKFLOW
 #ifdef TRACE_WORKFLOW
-extern const ECLRTL_API LogMsgCategory MCworkflow;       // Category used to inform enqueue/start/finish of workflow item
+extern const WORKUNIT_API LogMsgCategory MCworkflow;       // Category used to inform enqueue/start/finish of workflow item
 #endif
 #endif
 
 
 #endif
 #endif

+ 0 - 2
rtl/eclrtl/CMakeLists.txt

@@ -37,14 +37,12 @@ set (    SRCS
          rtlread.cpp 
          rtlread.cpp 
          rtltype.cpp 
          rtltype.cpp 
          rtlxml.cpp 
          rtlxml.cpp 
-         workflow.cpp 
     )
     )
 
 
 include_directories ( 
 include_directories ( 
          ./../../rtl/include 
          ./../../rtl/include 
          ./../../rtl/nbcd 
          ./../../rtl/nbcd 
          ./../../system/include 
          ./../../system/include 
-         ./../../common/workunit
          ./../../system/jlib 
          ./../../system/jlib 
          ./../../testing/unittests
          ./../../testing/unittests
          ${ICU_INCLUDE_DIR}
          ${ICU_INCLUDE_DIR}