服务未在系统操作框架中启动

service doesn't start in sysoperation framework

下面显示了我的 classes of sysOperation 框架,我的问题是当我打开对话框并按 OK 时,没有任何反应,这段代码有什么问题?

我的serviceclass:

class ProdutionFLowsService extends SysOperationServiceBase
{

    ProductionFlowId idOfCopy;
    int copyToDo;
    ProdTable prodTable;

    public void process(ProdutionFLowsContract  _contract)
    {

        this.getPromptParameters(_contract);

        select firstonly ProdId
                from prodTable
                order by ProdId
                where prodTable.ProductionFlowId == this.idOfCopy;

        this.insertInProdTable();
      


    }

     public void insertInProdTable()
    {
        ProdTable _prodTable;
        while(copyToDo > 0)
        {
             buf2Buf(prodTable,_prodTable);
            _prodTable.RecId = 0;
            _prodTable.ProdId = _prodTable.Type().initProdId(true);
            _prodTable.GAP035ProductionFlowId = _prodTable.ProductionFlowId;
            _prodTable.insert();
            copyToDo--;
        }
    }

    public void getPromptParameters(ProdutionFLowsContract _contract)
    {
       copyToDo =  _contract.parmCopyToDo();
       idOfCopy = _contract.parmidOfCopy();
    }

}

我的controllerclass:

class ProdutionFLowsController extends SysOperationServiceController
{
    
    public void new()
    {
        super();
        super(classStr(ProdutionFLowsService), methodStr(ProdutionFLowsService, process), SysOperationExecutionMode::Synchronous);
        this.parmDialogCaption("TODO");
    
    }
    public static void main(Args _args)
    {
        ProdutionFLowsController controller = new ProdutionFLowsController();
        controller.parmArgs(_args);
        controller.startOperation();
    }

}

我的ContractClass:

[DataContractAttribute]
class ProdutionFLowsContract implements SysOperationInitializable,SysOperationValidatable
{
    ProductionFlowId idOfCopy;
    int copyToDo;

   
    public void initialize()
    {
        idOfCopy = "";
        copyToDo = 0;
    }
    [DataMemberAttribute("idOfCopy"),SysOperationLabelAttribute(literalStr("TODO(Id)")),SysOperationDisplayOrderAttribute("1")]
    public ProductionFlowId parmidOfCopy(ProductionFlowId    _idOfCopy = idOfCopy)
    {
        idOfCopy = _idOfCopy;

        return idOfCopy;
    }
    [DataMemberAttribute("copyToDo"),SysOperationLabelAttribute(literalStr("copyToDo(Copy)")),SysOperationDisplayOrderAttribute("2")]
    public int parmCopyToDo(int     _copyToDo = copyToDo)
    {
        copyToDo = _copyToDo;

        return copyToDo;
    }

    public boolean validate()
    {
        
        return false;
    }

}

您的合同验证总是失败,因为它总是 returns false 并且在信息日志中没有显示任何错误:

public boolean validate()
{
    return false;
}

尝试用 return true 替换 return false 或完全删除 SysOperationValidatablevalidate 方法。