Page 1 of 1

ExecuteProcess in prolog does not work

Posted: Tue Apr 16, 2013 11:03 am
by ioscat
Hello, Community.
Got strange behaviour. We have got process with no entry parameters that works fine (with minor errors at the end). But when we start it from another process - we got no result, no data modified.

Code: Select all

ruleloadfromfile('Budget','D:\Cognos import text files\Dummy.txt');
#****Begin: Generated Statements***
#****End: Generated Statements****

#ViewZeroOut('Budget','ZeroOut_K_version');
a=executeprocess('Cube.Data.Copy_D_to_K');
asciioutput('C:\bat\test.txt', numbertostring(a));

asciioutput('C:\bat\test.txt', 
 numbertostring(
ProcessExitByChoreQuit()),
numbertostring(
ProcessExitNormal()),
numbertostring(
ProcessExitMinorError()),
numbertostring(
ProcessExitByQuit()),
numbertostring(
ProcessExitWithMessage()),
numbertostring(
ProcessExitSeriousError()),
numbertostring(
ProcessExitOnInit()),
numbertostring(	
ProcessExitByBreak()));

Code: Select all

NVALUE = (-1)*NVALUE;

#****Begin: Generated Statements***
Version='К';
if (VALUE_IS_STRING=1, CellPutS(SVALUE,'Budget',Version,Time,ВД,ЧН,Заказчики,Тарифы,ТС,Годы,Показатели), CellPutN(NVALUE, 'Budget',Version,Time,ВД,ЧН,Заказчики,Тарифы,ТС,Годы,Показатели));
#****End: Generated Statements****
Output file:
"0"
"16","0","6","8","5","10","11","7"

Re: ExecuteProcess in prolog does not work

Posted: Tue Apr 16, 2013 11:10 am
by ioscat
Found my error. The calling process copies data from version D to K. Before executing the process we set rule file to empty. D version is fully calculated. So there were no values.

Question closed. Thanx all!