Constructing a script is similar to writing a computer program.
We recommend that you follow the approach outlined below when you
construct scripts:
- Thoroughly understand the business process to be scripted
- Thoroughly understand how the transactions and services that your
script uses work
- Design the steps for the script "on paper"
- Determine the most maintainable way to set up your scripts. Rather
than creating complex, monolithic scripts, we recommend dividing scripts
into smaller sections. For example:
- For BPA scripts,
- Determine if several scripts have similar steps. If so, set up
a script that contains these common steps and invoke it from the main
scripts. For example, if the main script were a BPA script, this would
be invoked via a Perform script step.
- Determine if a large script can be divided into logical sections.
If so, set up a small script for each section and create a "master
script" to invoke each. For example, if the main script were a BPA
script, this would be invoked via a Transfer control step.
- For server-based script, you can segregate reusable steps into
"service scripts" and then use Invoke service script steps to execute the common logic.
- Add the script using Script
Maintenance
- Thoroughly test the script
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.