Understanding Where PeopleCode Can Be Used
The activity guide framework provides multiple methodologies for using PeopleCode to implement and customize activity guide usage in your system including:
-
Initializing activity guide instances.
Whether an activity guide is created dynamically or manually, each instance created from a template can be initialized through a PeopleCode method that you define specifically for this purpose.
-
Performing pre-processing for action items.
You can define a PeopleCode application class and method to perform pre-processing on an action item before the target transaction is displayed to the user. In addition to performing this pre-processing, the method must also redirect to the target transaction. In addition, Oracle recommends that you develop this application class and method by implementing and extending the PT_RCF:ServiceAGInterface interface class.
Alternatively, pre-processing can be performed in an iScript that must also specify and transfer the user to the target transaction.
-
Performing post-processing for action items.
You can define another PeopleCode method to perform post-processing on an action item after the user has completed the task. Post-processing can occur on the local system or the remote system if that’s where the transaction is hosted.
-
Developing custom action buttons.
The navigation frame provides default navigation buttons to allow a user to move to the next or previous action item. You can create additional navigation buttons—for example, to allow a user to manually mark an action item as complete or to cancel the activity guide instance altogether.
-
Dynamically returning an image URL as context data.
For fluid activity guides only, you can define a method to use defined context data to dynamically return an image URL as additional context data.
-
Dynamically returning a content URL to be displayed in a modal window.
For fluid activity guides only, you can define a method to dynamically return a content URL to display additional information. Typically, this additional content is static text; however, it can include context data values.
-
Performing pre-processing for the activity guide pagelet.
For classic activity guides only, you can define a PeopleCode method to perform pre-processing that will be executed every time the activity guide pagelet is loaded or reloaded in the WorkCenter pagelet area.