为什么子活动不能存储对其父活动的引用 [英] why can't a child activity store a reference to its parent activity

查看:77
本文介绍了为什么子活动不能存储对其父活动的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在处理工作流树时遇到以下错误:
'loan_application':活动'loan_application'的私有实现具有以下验证错误:活动'loan_application'是根活动,不能被引用活动通知客户".

The following errors were encountered while processing the workflow tree:
'loan_application': The private implementation of activity 'loan_application' has the following validation error:   Activity 'loan_application' is a root activity, and cannot be referenced by activity 'notify customer'.

推荐答案

您是否在继承NativeActivity?

验证和默认的CacheMetadta行为认为您正在添加您的父母作为儿童活动出于某种原因.您可以通过重写CacheMetadata并为它提供一个空的实现来解决此问题,然后对其进行调整,直到您正确声明了Children/Variables元数据为止.

什么时候出现顺便说一下,使用对父母的引用吗?是运行时吗?

Tim
Are you subclassing NativeActivity?

Validation and the default CacheMetadta behavior thinks you are adding your parent as a child activity for some reason. You could probably work around happening by overriding CacheMetadata, and giving it an empty implementation to start off with, then tweaking it until you have your Children/Variables metadata all declared correctly.

At what time will you be using the reference to your parent, by the way? Is it runtime?

Tim


这篇关于为什么子活动不能存储对其父活动的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆