// This method is called when the user clicks the button to associate the workflow.
        private string GetAssociationData()
        {
            BCWorkflowAssociationData data = new BCWorkflowAssociationData()
            {
                GeneralSupervisor = ((PickerEntity)ppGS.ResolvedEntities[0]).Key,
                TaskTitle = txtTitle.Text,
                Message = txtMessage.Text
            };

            // TODO: Return a string that contains the association data that will be passed to the workflow. Typically, this is in XML format.
            return SerializationHelper.SerializeToXml<BCWorkflowAssociationData>(data);
        }
 private void CreateInitialParams_ExecuteCode(object sender, EventArgs e)
 {
     associationData = SerializationHelper.DeserializeFromXml<BCWorkflowAssociationData>(workflowProperties.AssociationData);
 }