[PSFT] Trigger Business Process Based Workflow on Completion of AWE
REQUIREMENT: on completion of a Approval Workflow Engine (AWE), initiate a Business Process (Activity) based workflow.
ISSUE:
1. PeopleSoft recommends that AWE PeopleCode code (e.g., approval manager - DoApprove) occur in Component SavePostChange
2. PeopleSoft recommends that Business Process (Activity) code occur in Component Workflow event (e.g., TriggerBusinessEvent)
3. We only know if an approval process has reached final approval within the AWE activities itself, which (see #1) are happening in SavePostChange
4. Workflow event occurs between Save Post Change
If we code everything as per 1 and 2, we'd get the following behavior.
1. User approves transaction (Field Change -> Component Save processing);
2. Workflow Event Fires. However, we don't know whether or not to fire TriggerBusinessEvent because we don't know if its the final approval yet