Wizard problems

  • 2 October 2008
  • 3 replies
  • 0 views

Badge +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

Badge +11
Did you create a shared activity datafield called Metadata in the activity containing your event?
Badge +2

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));


}

Badge +2

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?

Reply