Skip to main content
Nintex Community Menu Bar

Wizard problems

  • October 2, 2008
  • 3 replies
  • 21 views

Forum|alt.badge.img+2

Hi everyone!


I'm a newbye, so don't be angry if i had lot of mistakes! :-)


I've create a Wizard called "Extended Client Event": i've added one more xaml page to Default Client Event before FinishPage.xaml.


I've create a datafield and added it in the K2control in the page;


I've edited @safeitemname@.xoml.cs with this new method (after UntilCondition method):


private

Init(Object sender, EventArgs e)


{


    K2.ActivityInstanceDestination.ActivityInstance.DataFields[

"Metadata"].Value = K2.Configuration.ActivityMetadata;


 


}


Everything runs.


Afterwards i've create new workflow project to test it: that project has a Start Activity, my Activity and Finish Server Event.


I've builded and deployed it: everything runs.


Then i've opened the workspace and started an instance of that process. The status is in ERROR and it displays me this message:



Extended Client Event

28006 Datafield Metadata not found


Anyone can help me?

3 replies

Forum|alt.badge.img+11
  • October 2, 2008
Did you create a shared activity datafield called Metadata in the activity containing your event?

Forum|alt.badge.img+2
  • Author
  • October 3, 2008

Yes, of course!


 


In the "PrepareConfigurationForBuild()" Method, in the ExtendedClientEventItem file, i've added this:


if

(!this.Event.Activity.DataFields.Contains("Metadata"))


{


    this.Event.Activity.DataFields.Add(new DataField("Metadata", DataTypes.String));


}


Forum|alt.badge.img+2
  • Author
  • October 6, 2008

This is the message when I try to view the Activity code:


 Error 1 Method 'UntilCondition' could not be resolved.  Either method could not be found or method signature does not match the delegate type.  0 0 


 


solutions?