Using the AESection Class 使用AESection类

AESection类允许动态修改ApplicationEngine程序的属性,适用于规则驱动应用。它提供SQL灵活性,但需注意PeopleCode和CallSection的限制。使用时确保规则相对静态,考虑使用SQL定义动态SQL。CallAppEngine用于同步在线调用,注意异常处理和性能影响。
摘要由CSDN通过智能技术生成

The AESection PeopleCode class enables you to change the properties of an Application Engine program section dynamically, without having to modify any of the Application Engine tables directly. This capability enables you to develop rule-based applications that conform dynamically to variables that a user submits through a page, such as the Application Engine Request page.

AESection PeopleCode类使您可以动态更改应用程序引擎程序节的属性,而不必直接修改任何应用程序引擎表。这功能使您能够开发基于规则的应用程序,这些应用程序动态符合用户通过页(如“应用程序引擎请求”页)提交的变量。

The AESection class provides the following flexibility:

AESection类提供了以下灵活性:

  • Portions of SQL are determined by checks before a run.
  • SQL的某些部分是由运行前的检查确定的。
  • The logic flow conforms as rules change, and the program adjusts to the rules.
  • 逻辑流程随着规则的变化而变化,程序根据规则进行调整

When using an AESection object:

使用AESection对象时:

  • Ensure that you require primarily dynamic capabilities with the SQL your program generates.
  • 确保您需要的主要是程序生成的SQL的动态功能。
  • Ensure that the rules to which your program conforms are relatively static or at least defined well enough that a standard template could easily accommodate them.
  • 确保你的程序所遵循的规则是相对静态的,或者至少定义得足够好,标准模板可以很容易地适应它们。
  • Consider using SQL definitions to create dynamic SQL for your programs to avoid the complexity created by the AESection object using the StoreSQL function.
  • 考虑使用SQL定义为您的程序创建动态SQL,以避免使用StoreSQL函数的AESection对象造成的复杂性。
  • The AESection class is designed to dynamically update SQL-based actions only, not PeopleCode, Call Section, or other actions.
  • AESection类被设计为仅动态更新基于SQL的操作,而不是PeopleCode、Call Section或其他操作。

You can add a PeopleCode action to your generated section, but you cannot alter the PeopleCode.

您可以向生成的节添加PeopleCode操作,但不能更改PeopleCode。

  • The AESection class is designed to use for online processing.
  • AESection类设计用于在线处理。

Typically, dynamic sections should be constructed in response to a user action.

通常,动态部分应该构造为响应用户操作。

Note: Do not call an AESection object from an Application Engine PeopleCode action.

附注:不要从应用程序引擎PeopleCode操作调用AESection对象。

Related Links

“Understanding the AESection Class” (PeopleCode API Reference)

相关链接“理解AESection类” (PeopleCode API参考资料)

Making Synchronous Online Calls to Application Engine Programs
对应用程序引擎程序进行同步联机调用

To make synchronous online calls to an Application Engine program, use the PeopleCode function CallAppEngine.

要对应用程序引擎程序进行同步联机调用,请使用PeopleCode函数Call App Engine。

Note: If you make a synchronous call, users cannot perform another PeopleSoft task until the Application Engine program completes. Consider the size and performance of the Application Engine program called by CallAppEngine. You should ensure that the program will run to successful completion consistently within an acceptable amount of time.

注意:如果进行同步调用,则在应用程序引擎程序完成之前,用户无法执行其他PeopleSoft任务。考虑CallAppEngine调用的应用程序引擎程序的大小和性能。您应该确保程序在可接受的时间内持续运行到成功完成。

If an Application Engine program called by CallAppEngine terminates abnormally, the user receives an error, similar to other save time errors, that forces the user to cancel the operation. The CallAppEngine function returns a value based on the result of the Application Engine call. If the program was successful, it returns a zero; if the program was unsuccessful, it returns a value other than zero.

如果CallAppEngine调用的应用程序引擎程序异常终止,则用户将收到一个与其他保存时间错误类似的错误,该错误将强制用户取消操作。CallAppEngine函数根据应用程序引擎调用的结果返回一个值。如果程序成功,则返回零;如果程序不成功,则返回除零以外的值。

Related Links

“CallAppEngine” (PeopleCode Language Reference)

相关链接"CallAppEngine"(PeopleCode语言参考)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值