如果我想以白盒方式验证这段代码,就必须将特定于用户界面的代码与业务代码分开,这就需要进行重构。
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!
这使BPM 2.0不必编写和维护代码即可实现复杂的业务流程。
This has enabled BPM 2.0 to implement a complex business process without having to write and maintain code.
但是,您可以添加特定于您的业务问题的自定义代码,并且不必为设置类和方法而烦恼。
However, you can add custom code that is specific to your business problem without having to worry about setting up classes and methods.
在本文中,我们会集中讨论五个主要问题,即:特性团队、团队自主管理、业务价值、代码所有权以及稳定性。
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.
分解业务逻辑和UI代码。
但是如果业务模型改变,这些代码需要重新生成。
But if the business model changes, the code has to be re-generated.
业务规则位于代码外部,保存在一个中央规则存储库中。
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.
就处理服务出错而言,标准的业务错误代码有助于应用程序更得心应手地使用这些服务。
Having standard business error codes helps applications consume these services easily in terms of handling the service errors.
WAS CE展示了一个新的业务模型,提供免费代码用于开发、测试和部署。
WAS CE unveils a new business model, providing free code for use in development, testing, and deployment.
业务逻辑与技术代码缠绕在一起。
因此代码块与业务操作之间存在多对多的关系。
So there is a many-to-many relationship between code blocks and business operations.
通过将规则置于应用程序代码之外,业务专家能够定义和管理决策逻辑。
By externalizing rules from the application code, business experts can define and manage decision logic.
另外,映射文件能够很清晰的将业务逻辑和持久化代码分开。
In addition, mapping files make for a cleaner separation between business logic and persistence code.
将执行业务逻辑所需的代码添加到execute方法中。
You add the code required to perform the business logic to the execute method.
应用推荐