Axapta 系统操作框架-CanGoBatchJournal
当Axapta 系统操作框架-CanGoBatchJournal,axapta,dynamics-ax-2012,sysoperationframework,Axapta,Dynamics Ax 2012,Sysoperationframework,当canGoBatchJournal返回true时,可以通过系统管理>查询>批处理>新建>任务>新建>[ClassName:MyRunBaseBatch]在Ax中创建RunBaseBatch 不过,我有几个使用SysOperation框架创建的特性。此方法不继承canGoBatchJournal方法。是否有办法使它们在上述菜单中也可见?如果您实现了SysOperation框架,它应该已经很好了,因为SysOperationController实现了Batchable接口 您可以参考本白皮书:我深
canGoBatchJournal
返回true时,可以通过系统管理>查询>批处理>新建>任务>新建>[ClassName:MyRunBaseBatch]
在Ax中创建RunBaseBatch
不过,我有几个使用SysOperation框架创建的特性。此方法不继承
canGoBatchJournal
方法。是否有办法使它们在上述菜单中也可见?如果您实现了SysOperation框架,它应该已经很好了,因为SysOperationController实现了Batchable接口
您可以参考本白皮书:我深入研究了如何使用表单控件检索其数据。您可以使用SysOperationJournaledParametersAttribute属性。下面是如何将该属性应用于控制器的示例。此示例显示控制器如何调用自定义服务。然后,可以将控制器用作批处理任务,也可以从菜单调用控制器以显示批处理对话框
[SysOperationJournaledParametersAttribute(true)]
class YourCustomController extends SysOperationServiceController
{
public void new()
{
super();
this.parmClassName(classStr(YourCustomService));
this.parmMethodName(methodStr(YourCustomService,processOperation));
this.parmDialogCaption("dialog caption");
}
public ClassDescription caption()
{
return "class description";
}
public static void main(Args args)
{
YourCustomController controller;
controller = new YourCustomController();
controller.startOperation();
}
}
下面是控制器调用的自定义服务
class YourCustomToolService extends SysOperationServiceBase
{
public void processOperation()
{
// Call your code to do run your custom logic
}
}
canGoBatchJournal是RunBaseBatch上的一个方法,不可批处理。