Hi!
I'm trying to create to batch for the first time... and I encountered some problem...
I want to create single BatchJob which contains several Tasks...
I created DataContract :
[DataContractAttribute]
class AABatchDC
{
str parmStr;
}
[
DataMemberAttribute,
SysOperationLabelAttribute(literalStr("Label Attribute")),
SysOperationHelpTextAttribute(literalStr("Help Text Attribute")),
SysOperationDisplayOrderAttribute('1')
]
public str parmStr(str _parmStr = parmStr)
{
parmStr = _parmStr;
return parmStr;
}
and Service
class AABatchTask
{
}
[SysEntryPointAttribute(false)]
public void pr(AABatchDC _contract)
{
AABatchTest bt;
bt.initValue();
bt.Field1 = strFmt("%1 : %2", _contract.parmStr(), DateTimeUtil::utcNow());
bt.insert();
}
and MenuItem (Action) with Object "SysOperationServiceController" and Parameters "AABatchTask.pr"
Everything works fine... but every time i add new task it also create new BatchJob... ;/
How can i add several tasks to one batch ??
It will be perfect if i could choose BatchJob in Parameters...
Thank you in advance!!
*This post is locked for comments
I have the same question (0)