Site menu:

Standard Job Search
Keywords: Country: Advance Search






Activity guides are a PeopleTools feature that allow you to define guided procedures for a user or group of users to complete. Users are presented with a list of actions, or tasks, that need to be completed to finish the procedure.
As delivered Activity Guide comes up with Some delivered buttons like Next , Previous, Mark Complete , Exit.
If you click Exit button then the user completely logs out from the System, but if you want send then back to a particular page then we have to
modify App Package.
In my case we have a landing page where users Enters EMPLID and Date of birth then it will take them to Custom Pages as Guest , then as Guest he fills the information and when the clicks LogOut it has to take them back to the Landing page.




I created a New App package with a One App Class XXXXXXXXX_LOGOUT.


My App Class Code XXXXXXXXX_LOGOUT looks like this, I created a new method XXX_XExitAG which simply transforms to Landing page.


import PTAI_ACTION_ITEMS:AGInterface;
import PTAI_ACTION_ITEMS:ActionItem;
import PTAI_ACTION_ITEMS:Constants;
import PTAI_ACTION_ITEMS:ContextData;
import PTAI_ACTION_ITEMS:List;
import PTAI_COLLECTION:Collection;
import PTAI_ACTION_ITEMS:PgltButtons;
import SCC_TM_ACTIVITYGUIDE_FW:TaskProcessingAdapter:SubsequentProcessingAdapter;
import SCC_TM_TASK_MGMT:NOTIFICATIONS:TMNotifications;
import SCC_SI_MANAGEMENT:UI:PERSON:DelSrvcIndPersonData;
import SCC_TM_ACTIVITYGUIDE_FW:ActionItemProcessingAdapter:*;

class XXXXXXXXX_LOGOUT extends SCC_TM_ACTIVITYGUIDE_FW:ActionItemProcessingAdapter:ActionItemPostProcAdapter
method XXXXXXXXX_LOGOUT();
method XXX_XExitAG(&list_id As string) Returns string;
end-class;

Global string &TaskReturnURL, &callingComponent;

method XXXXXXXXX_LOGOUT
%Super = create SCC_TM_ACTIVITYGUIDE_FW:ActionItemProcessingAdapter:ActionItemPostProcAdapter();
end-method;

method XXX_XExitAG
/+ &list_id as String +/
/+ Returns String +/
/+ Extends/implements SCC_TM_ACTIVITYGUIDE_FW:ActionItemProcessingAdapter:ActionItemPostProcAdapter.XXX_XExitAG +/

Local PTAI_ACTION_ITEMS:List &list = create PTAI_ACTION_ITEMS:List();
Local PTAI_ACTION_ITEMS:Constants &PTAI_CONSTANTS = create PTAI_ACTION_ITEMS:Constants();
Local string &returnURL = &TaskReturnURL;
Local string &menu, &comp, &page, &tmplateID, &Institution;

&TaskReturnURL = "";

SQLExec("SELECT SCC_TM_PARENT_TMPL FROM PS_SCC_TM_PTAILIST WHERE SCC_TM_LIST_ID = :1 ", %Request.GetParameter("PTAI_LIST_ID"), &tmplateID);
SQLExec("SELECT SCC_TM_KEY_VALUE FROM PS_SCC_TM_PTAICNTX WHERE SCC_TM_LIST_ID = :1 and FIELDNAME='INSTITUTION' ", %Request.GetParameter("PTAI_LIST_ID"), &Institution);

/* if task is completed , navigate to the component set as "Complete Task" default in configuration */
&list.open(&list_id);

&returnURL = GenerateComponentPortalURL(%Portal, %Node, @("MenuName." | "XXX_XXXXX_XXXX_MENU"), %Market, @("Component." | "XXX_XXXXX_XXXX"), @("Page." | "XXX_XXXXX_XXXX"), "U");
Return &returnURL;


end-method;


WE need to Add this AppPackage, App Class and Method Names in the Configuration pages with your label, here I used LogOut.









Posted by: Vamsi      Date: 2016-07-08




Nice thank you

Posted by: Date:2016-07-12
..............................................................................................................................................................................................
        Post more Comments :
Name:
EmailID:
Date:
Comments: