You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Approval Workflow Engine (Error "No approvals required" )

12 replies [Last post]
Guest's picture
Guest

I am trying to implement workflow through AWE in a new custom application. I have done the following settings in the path this "Setup HRMS -> Common Definitions-> Approvals"
1. Register Transactions
2. Workflow Transactions
3. Configure Transactions
4.Setup Process Definitions

I am getting message like "No approvals required" when I am viewing through the preview of Setup Process Definitions. I am struggling with this.

I will be thankful to you if u help me out.

Raj's picture
Raj (not verified)
Re: Approval Workflow Engine (Error "No approvals required" )

Hi,
Can u pls check the "Criteria Definition" ( @ Definition , Path and State level).
This should be always true. Make this "Always True" ( @ 3 levels) if it is not.

then check it.. and let me know

Guest's picture
Guest (not verified)
Re: Approval Workflow Engine (Error "No approvals required" )

Yeah!!! I made it always true but still there is no change....

Guest's picture
Guest (not verified)
Re: Approval Workflow Engine (Error "No approvals required" )

I have checked the "Cross Reference Record (_XREF table)" but there is no data in the table...

Guest's picture
Guest (not verified)
Re: Approval Workflow Engine (Error "No approvals required" )

Thanks......
Well the change in Criteria (@ 3 levels) worked and I hav come to a point where i m getting an errors as ".is NULL, so cannot access member SelectByKey".
"HR_TRANSACTIONS.GetTransferChoice Approver.OnExecute Name: GetUser"

Afzal's picture
User offline. Last seen 11 years 22 weeks ago. Offline
Joined: 03/16/2009
Posts: 4
Approval Workflow Engine

Hi Raj,

Help me out !!!
In preview I am able to see Not Routed and recipient Name but no related item in his Worklist. I hav two different components and pages one for the Transaction and Second for the Approval. Approval page and component are registered in AWE Set Up. There is no data in my _XREF table and no related data even in the PTAFAW_WL (Worklist Record).

Is there any code i need to write at my components?
Can you please tell me what all the code need to be written with respect to AWE working?

Thanks in advanced...

Guest's picture
Guest (not verified)
Re: Approval Workflow Engine (Error "No approvals required" )

Hmm...Afzal,
Idealy PS recommends that Transction and Approval shd b on same Page and hence same Component.
Any way, am assuming you have registered the right componenet and page on AWE.

But the point of worry is - There is no data in CROSS REF table. Have u Included delv CROSS Ref subrecord and key fields of Header Record into main CROSS ref record as non-key fields?

Pls revert

Afzal's picture
User offline. Last seen 11 years 22 weeks ago. Offline
Joined: 03/16/2009
Posts: 4
Re: Approval Workflow Engine (Error "No approvals required" )

Hi there.......
I hav included the all required fields and subrec in my cross ref table. Most importantly i hav followed all the steps as given in peoplesoft AWE red paper and i m very much sure that there is no flaw in these steps. The only thing I m concerned and not confident abt the Application Package usage and the other options which are not spoken much in the red paper.

As you said that same component and same page are used for the both transaction and the approval in AWE applications. But this is not the case in most of the delivered AWE applications for example if you take the Transfer Employee it has got two different components and pages for the transaction and approval and the only approval component is registered in the AWE setups the transaction component has no registration in AWE Setup.

That is why the mess is getting created and now i m at point where i dont find any way out....
However thax for your EFFORT and TIME......

Phellip's picture
Phellip (not verified)
Re: Approval Workflow Engine (Error "No approvals required" )

Hi, i have this problem too.
How populate Cross-reference record?

Sanjeevan's picture
Sanjeevan (not verified)
Approval Workflow Engine

Hi,
Even i am getting the same problem afzal. I have configured my AWE which is working fine .. but say 10 transactions are fired of them 1 transaction has a problem. Values are present in my header record for that lost transaction for no value in the cross reference or stepinst or userinst or hcsc awe txn log or ptafaw_wl tables. but when i preview the same thorugh setup definition I am able to see that it has been routed to the default role that we specify but its showing as not routed and neither is it visible in the persons WL..... do let me know in case you have got a resolution to this problem....

Ramesh Gopalakrishna's picture
Ramesh Gopalakrishna (not verified)
Re: Approval Workflow Engine

Hi,
This happens when you change any data in the XREF record from backend. I experienced it too. I had to inactivate the current definition id for the approval process and created a new one. No problems. Smooth flow of data is occuring.

Guest's picture
Guest (not verified)
Re: Approval Workflow Engine (Error "No approvals required" )

Hi,

I am also facing the same issue. I am configuring AWE. When I submit the transaction, the data gets updated into the cross reference table, but not into PS_SAC_AW_USERINST record. I have ran a trace between my AWE and PS delivered AWE. I found that
OnProcessLaunch SAC_AW.NotificationEventHandler.OnExecute returns array in the PS delivered AWE, which is not in my AWE.
As it is not triggered, the process goes to the approval state automatically. In my cross reference table, the THREAD_STATUS show as approved.
Please help!!!

Guest's picture
Guest
Re: Approval Workflow Engine (Approval step skipped if)

Hi
I have created AWE for some custom application in peoplesoft HRMS.

As per my requirement ANY manager can apply on behalf of employee.
if I am applying through some manager who is approver at level 2.
workflow is generated perfectly but after first level approval, at 2nd level it is showing "skipped". and going to third approver.

Can any one help me regarding the issue. its very urgent.