Saturday, March 20, 2010

Peoplesoft Worklist

Hi All

This is my first major project related to Application workflow engine . First of all hats off to person who have written code for PTAF_CORE ...

In many organization , custom sign on process has been implemented and you cannot rely on the URL generated during the approval process . The class which generates URL in AWE is :GetNotifyURLBase

You can change your code to pull information from the custom URL in place of existing URL .. but this will generate issues when you will access this through your worklist . Please use deliver function

%WLName to write a selective code ..



Regards
Neeraj
Regards
Neeraj

Saturday, September 19, 2009

Application engine Log file

After spending three days with Peoplesoft Application engine log file , I came across few intresting fun facts about the way peoplsoft put log file in distribution agents ( aka process monitor ) . I did use a simple code .

&Log = 1Aet.filename | String(1.AET.PROCESS_INSTANCE) | ".LOG"
&LogFile = GetFile(&Log, "W", "ANSI", %FilePath_Relative);

Though I was able to confirm that log file was created but this file was not copied to report server . Bit scary but thanks to Nitin sir ( there was a "." in file name ans due to double "." ) this file was not copied to report server . Bingo problem solved .

But that wasn't my problem , My problem was to have multiple log files for multiple input files :-) ( I demand too much from peoplesoft ) . My peanut brain thought due to a loop and distinct file name this process will create new log files .

It seems peoplesoft doesn't share my idea , if we have multiple log file with same extensions . It will not put all files in report server ( not even first one ) . You will need new file extensions for each file and peoplesoft accepts only few such extensions like ".ERR", ".TXT" ..One more thing , when I opened this file in append mode it didn't publish that files .

So how did I get my problem solved , just simple I used few global variables along with file open mode in "U" mode , getpostion and set position and bingo it worked like charm :-) . Now I have to check the script which copies files .