任务命令可以拥有零个或多个步骤。
可以使用其他步骤扩展任务命令。
通过添加其他步骤扩展任务命令。
多个步骤组成一个任务命令。
以不同的模式调用管理命令或任务命令。
它先从任务命令获取表步骤,然后构造行。
It gets the table step from the task command first, then constructs a row.
其他步骤实现类似于任务命令步骤的实现。
The additional step implementation is similar to the implementation of a task command step.
用户注册表与任务命令。
在任务命令中创建步骤。
任务命令扩展提供程序。
管理任务命令快速参考
清单11显示了任务命令扩展提供程序的示例。
Listing 11 shows an example of a task command extension provider.
认证引擎是以控制器和任务命令的形式实现的。
The authentication engine is implemented as controller and tasks commands.
任务命令扩展包含添加到现有命令的其他步骤。
A task command extension contains additional steps added to an already existing command.
任务命令拥有零个或多个参数和零个或多个步骤。
A task command has zero or more parameters and zero or more steps.
控制器命令然后使用任务命令来执行单元业务逻辑。
The controller command in turn USES the task commands to implement the unit business logic.
清单7显示了如何通过添加新的步骤扩展任务命令的示例。
Listing 7 shows an example of how to extend a task command by adding a new step.
与管理命令不同,任务命令不应实现execute方法。
Unlike an admin command, a task command should not implement an execute method.
加载步骤的构造器将其父任务命令和步骤数据作为输入参数。
The constructor to load a step takes its parent task command and step data as input parameters.
图7展示了从任务命令到外部ILOGBRMS的交互流。
Figure 7 shows the interaction flow from the task command to the external ILOG BRMS.
创建步骤的构造器将其父任务命令和步骤元数据作为输入参数。
The constructor to create a step takes its parent task command and step metadata as input parameters.
在清单12中,步骤使用任务命令的结果,然后对它进行添加。
In Listing 12, the steps use their task command's result and then add to it.
可以在步骤的结果或父任务命令的结果中设置步骤的执行结果。
The result of a step's execution can be set either in the step's result or in the parent task command's result.
任务命令应该扩展AbstractTaskCommand。
就像管理命令一样,任务命令应该为创建和加载命令提供构造器。
Just like an admin command, a task command should provide constructors to create and load commands.
任务命令除了不能被外部请求调用外,其他和控制器命令很相似。
Task commands are similar to controller commands, except that they cannot be invoked by an external request.
对于任务命令,在调用execute方法之前设置空的命令结果。
For task commands, an empty command result is set before invoking the execute method.
由于任务命令还包含步骤,所以它还应该为创建和加载步骤提供方法。
Since task commands also contain steps, it should also provide methods to create and load steps.
任务命令提供程序应该为创建和加载类似于管理命令的命令提供方法。
A task command provider should provide methods to create and load commands similar to the admin command.
任务命令的所有步骤应该扩展AbstractAdminStep。
All steps of a task command should extend AbstractAdminStep.
应用推荐