I have the following bookmark handler code. But the last line keeps throughing an execption:ActivityDelegate 'ActivityFunc`1' should have an owner workflow element specified.How do I set the owner for this delegate. private void onStart( NativeActivityContext 上下文, 书签 书签, 对象native _ activity){
void onStart(NativeActivityContext context, Bookmark bookmark, object native_activity) {
ActivityFunc ActivityFunc < 令牌 > sevfunc = 新 ActivityFunc < 令牌 >(); sevfunc.Handler =( BpmnEvent )native_activity; ActivityInstance child = context.ScheduleFunc< 令牌 >(sevfunc, this .on_childcompleted, this .on_childfaulted); <Token> sevfunc = new ActivityFunc<Token>(); sevfunc.Handler = (BpmnEvent)native_activity; ActivityInstance child = context.ScheduleFunc<Token>(sevfunc, this.on_childcompleted, this.on_childfaulted);
更多推荐
如何设置活动代表的所有者字段.
发布评论