如果我想以白盒方式验证这段代码,就必须将特定于用户界面的代码与业务代码分开,这就需要进行重构。
If I want to validate this code in a white box manner, I have to separate UI-specific code from business code, which requires some refactoring.
正如你看到的,我只是使例子更加健壮,但是对于实际业务代码影响最小。
As you can see, I just made the example more robust with minimal impact on the actual business code.
Tivoli提供了一种解决方案,使得业务代码不必再实现那类授权扩展。
Tivoli provides a solution that relieves the business code from having to implement that kind of authorization extension.
虽然这种方法可以把接口的验证逻辑从它的核心业务代码去耦,但是它的可重用性和可配置性不是很强。
While this approach works to decouple the interface's validation logic from its core business code, it isn't very reusable or configurable.
服务代码实现WSDL接口并将业务与映射逻辑应用于调用和映射来自后端系统的结果。
The service code implements the WSDL interface and applies business and mapping logic to call into and map results from backend systems.
通过将业务规则从代码中外部化并将其向用户提供,可以有效地构建能应对未来变化的应用程序。
Externalizing the business rules from the code and making them user accessible is an effective means of building an application that is anticipating the future.
这种思路需要把交互代码从业务逻辑中分离出来,正如您已经了解的,这是最佳的入门实践!
This sort of thinking requires a decoupling of interaction code from business logic, which (as you already know) is a best practice to begin with!
但是,您可以添加特定于您的业务问题的自定义代码,并且不必为设置类和方法而烦恼。
However, you can add custom code that is specific to your business problem without having to worry about setting up classes and methods.
这使BPM 2.0不必编写和维护代码即可实现复杂的业务流程。
This has enabled BPM 2.0 to implement a complex business process without having to write and maintain code.
在本文中,我们会集中讨论五个主要问题,即:特性团队、团队自主管理、业务价值、代码所有权以及稳定性。
In this article, we focus on five main issues, namely: feature teams, team autonomy, business value, code ownership, and stability.
重用知识与技术资产——比如在转型活动中产生的需求及业务规则文档、设计制品及技术代码等。
Reuse of both knowledge and technical assets - such as requirements and business rules documents, design artifacts, and technical code created during transformation activities.
业务组件代码必须能够将这个标识符映射到其后端数据中。
The business component code must be able to map this identifier to its back end data.
公司在技术方面拥有几名非常了解业务方面、代码结构和数据库的团队成员。
The company has several team members on the technical side that are very knowledgeable about the business aspects, code structures, and databases.
因此,在不同的组件之间可以保持一定程度的松散耦合,这让他们可以专注于自己的业务逻辑代码。
Therefore, they are able to keep a loose-coupled level among different components so that they can focus on their business logic code.
业务规则位于代码外部,保存在一个中央规则存储库中。
Business rules are externalized from the code and kept in a centralized rules repository.
透明性:前置和后置条件代码不与业务逻辑混合。
Transparency: The pre - and post-condition code isn't mixed with business logic.
对于那些业务项目属性,代码确定这些属性充当哪些流程或组件的输入或输出,并制作这些相关流程的列表。
For each of those business item attributes, the code determines which processes or components the attributes serve as inputs to or outputs of and makes a list of these dependent processes.
使用sendmail函数包含用来创建和显示Dojo组件的主业务逻辑和代码。
Use the sendmail function to include the primary business logic and the code for creating and displaying Dojo widgets.
WAS CE展示了一个新的业务模型,提供免费代码用于开发、测试和部署。
WAS CE unveils a new business model, providing free code for use in development, testing, and deployment.
就处理服务出错而言,标准的业务错误代码有助于应用程序更得心应手地使用这些服务。
Having standard business error codes helps applications consume these services easily in terms of handling the service errors.
另外,映射文件能够很清晰的将业务逻辑和持久化代码分开。
In addition, mapping files make for a cleaner separation between business logic and persistence code.
当示例代码启动业务过程时,自动地设置CaseIdentifier和CaseFolder字段。
When a business process is launched by the sample code, the CaseIdentifier and CaseFolder fields are set automatically.
当然,如果无法认真管理从最初的业务问题,到代码编写,到最后进行部署的过程,一个应用程序是无法获得成功的。
Of course, the applications cannot be successful if they are not carefully managed from the initial business problem, through to the code being built, and finally to deployment.
目前,业务规则与主代码紧密耦合,使得在做出更改时必须小心谨慎,同时还增加了测试需求。
Currently, business rules are closely coupled with the main code, necessitating the need for care while making changes and also increasing testing requirements.
然而,对于由EJB代码生成的业务流程而言,确定适当的方法是困难的。
However, for business processes with generated EJB code, it is difficult to identify the appropriate methods.
好的设计可以在我们更深入理解业务流程时,简化代码修改,并为创建UI需要的价值提供更多的选择。
A good design lets us change our code easily as we find out more about the business processes, giving us multiple options for providing the value that the UI needs.
该层的作用在于针对不同的数据存储技术,从业务逻辑中分离数据访问代码。
The power of this layer is in separating data access code from the business logic for disparate data store technologies.
这可能会进一步混淆业务逻辑和GUI描述代码之间的界限,从而使软件维护更加困难。
This can further blur the line between business logic and the code describing the GUI which can make maintenance of the software more difficult.
我们在实践中发现,除非一个项目是完全空白的,否则,除了进行自上而下的分析外,还需对预先存在的代码和业务逻辑进行自下而上的分析。
In practice, we find that unless a project is entirely green field, in addition to a top-down analysis, there is a simultaneous bottom-up analysis of pre-existing code and business logic.
您需要为代理提供代码,作为您愿意异步执行的业务逻辑。
You provide the code for the agent, which is business logic that you would like executed asynchronously.
应用推荐