I'm trying to parse a string in order to use it with ExecuteProcess().
Code: Select all
tmpReturnValue = ExecuteProcess (tmpProcessString);
IF (tmpReturnValue = ProcessExitNormal()); tmpReturnValueString = 'OK'; ENDIF;
IF (tmpReturnValue = ProcessExitMinorError()); tmpReturnValueString = 'Minor_Error'; ENDIF;
IF (tmpReturnValue = ProcessExitByQuit()); tmpReturnValueString = 'Exit_by_Quit'; ENDIF;
IF (tmpReturnValue = ProcessExitSeriousError()); tmpReturnValueString = 'Serious_Error'; ENDIF;
IF (tmpReturnValue = ProcessExitByBreak()); tmpReturnValueString = 'Exit_by_Break'; ENDIF;
I'm writing the final string to a log file which looks good to me to call the process.
From the Log file:
Calling the process with the string also works. But if I try to use the shown string as a variable I get an error message:'RC_Create_Report_Reservation_OTB', 'PmDirectory','RC_Rep00002', 'PmFileName','REP001_ResOTB', 'PmID','1170', 'PmDate','10.01.2014', 'PmOutput','PDF'
Any ideas?2764 [3c] ERROR 2014-02-11 09:41:14.700 TM1.Process Process "RC_Create_Report_from_RC_Report_Config": : Could not initialize process
2764 [3c] ERROR 2014-02-11 09:41:14.700 TM1.Process RC_Create_Report_from_RC_Report_Config: No such process name: "'RC_Create_Report_Reservation_OTB','PmDirectory','RC_Rep00002','PmFileName','REP001_ResOTB','PmFMTGID','ZSys_PickUp','PmDate','01.01.2014','PmOutput','PDF'"